PHP feedback form problems?

I really don’t think it is the PHP feedback form but could there be something different at my client’s server?
If I test the website on my own provider’s server it works fine:
http://www.portret-art.nl/hsa/healthschool.html and then go to ‘contact’ .
But if I upload this to my client’s server I only get the error page:
http://www.healthschool.nl/test/test . (different page - i didn’t dare to punt on the official one yet)
Any idea how come?
Love to hear from you guys. I am quite desperate with this since I can’t ‘charge’ the website to my client yet … :frowning:

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Having a look at the source code on the test/test page reveals this:

<?php

$x = mail( "&#97;&#97;&#110;&#64;&#110;&#111;&#115;&#112;&#97;&#109;&#46;&#110;&#108;", "test", $tekst , "From: &#97;&#102;&#122;&#64;&#110;&#111;&#115;&#112;&#97;&#109;&#46;&#110;&#108;");

if ($x == 1){echo ("Uw email is verstuurt.") ; 
} else { 
echo ("nUw email is NIET verstuurt !") ;
} 
?>

</center>
</div>
<div id="item4" style="position:absolute; left:450px; top:288px; width:100px; height:100px; z-index:5">
	<center>
<?php $x = mail( "aan@nospam.nl", "test", $tekst , "From: afz@nospam.nl"); if ($x == 1){echo ("Uw email is verstuurt.") ; } else { echo ("nUw email is NIET verstuurt !") ; } ?>

Have you possibly added some php as as a markup to this page? Which is being processed before the -go.php is implemented.

Or in Page>Form setup

All this should be handled by the PHPFF action with no additional stuff.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What do you know anything about the client server? Is it a Microsoft server?

David

On 11 Jun 2008, at 09:40, paulvw wrote:

I really don’t think it is the PHP feedback form but could there be something different at my client’s server?
If I test the website on my own provider’s server it works fine:
http://www.portret-art.nl/hsa/healthschool.html and then go to ‘contact’ .
But if I upload this to my client’s server I only get the error page:
http://www.healthschool.nl/test/test . (different page - i didn’t dare to punt on the official one yet)
Any idea how come?
Love to hear from you guys. I am quite desperate with this since I can’t ‘charge’ the website to my client yet … :frowning:

Paul

David Owen
Freeway Friendly Web hosting and Domains ::
(Test Drive a web hosting account for Free)

http://www.ineedwebhosting.co.uk

http://www.printlineadvertising.co.uk/freeway

Hi David,
Actually, I had some php there, but just threw it out. Indeed, that shouldn’t be there. But still the same problem.

It’s a Linux server. I just heard from that provider that they have PHP in safe mode. Now this is a bit too complicated for me. Does that have an impact on this PHP script or do I need to change that?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The only thing I know about sending mail in safe mode is that you are
not allowed to set the -f flag. This flag makes the mail server
switch the message to appear to be from whomever you tell it, rather
than the server itself (email@hidden or similar). This has an
impact on whether your mail will be delivered, since a difference
between the From: header and the -f flag address is a prime target
for being marked down as spoofed mail. You may have to switch hosts
if your form mail is mission-critical, because it’s mighty risky
otherwise.

Walter

On Jun 11, 2008, at 5:10 AM, paulvw wrote:

Hi David,
Actually, I had some php there, but just threw it out. Indeed, that
shouldn’t be there. But still the same problem.

It’s a Linux server. I just heard from that provider that they have
PHP in safe mode. Now this is a bit too complicated for me. Does
that have an impact on this PHP script or do I need to change that?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I think you might have to shout out to Tim for this one - I know nothing about the limitations of running in safe mode for this.

http://www.freewayactions.com

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As Walter mentioned running this script and sending mails in safe mode can be a little tricky at best. You might be better off either locating a server that isn’t restricted like this and using it to hot either the whole site of simply the -go.php file. If you do the latter then please adjust the php file so that it only accepts requests from your specific form pages.
Regards,
Tim.

On 11 Jun 2008, at 07:10, DeltaDave wrote:

I think you might have to shout out to Tim for this one - I know nothing about the limitations of running in safe mode for this.

http://www.freewayactions.com

David

FreewayActions.com - Freeware and shareware actions for Freeway Express & Pro.

Protect your mailto links from being harvested by spambots with Anti Spam.
Only available at FreewayActions.com

http://www.freewayactions.com

Thanks for replying Tim. The only thing I am facing now is that I don’t quite get what you mean :slight_smile:
Those guys at the host said that there adjustments can be made in the PHP script and they are talking about changing ‘curl’ or something. Obviously, it is my client’s host, so I can’t really do much. This host has about 15,000 clients (they say).
Any ideas folks? Do I have any other options beside hosting that form myself by means of an iForm or something?

Thanks,

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I would bring the following case to your client: they can move hosts,
or they can agree that they will not get all of their mail. The
choice is very plainly theirs to make, and if they take the wrong
view, then you are not responsible.

They need to hear it framed in that manner. If they want to get their
mail, then they need to go to a proper host, one that does not use a
shotgun (safe mode) to kill flies.

There are thousands upon thousands of inexpensive, reliable hosting
providers out there who are smart enough to use suexec to the same
end, and that gets you all sorts of benefits above and beyond script
security, and does not restrict your authority the way safe mode does.

Walter

On Jun 11, 2008, at 4:06 PM, paulvw wrote:

Thanks for replying Tim. The only thing I am facing now is that I
don’t quite get what you mean :slight_smile:
Those guys at the host said that there adjustments can be made in
the PHP script and they are talking about changing ‘curl’ or
something. Obviously, it is my client’s host, so I can’t really do
much. This host has about 15,000 clients (they say).
Any ideas folks? Do I have any other options beside hosting that
form myself by means of an iForm or something?

Thanks,

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I got it Walter. You are right. That is a choice they can make. One more thing though: at this point they don’t get mail at all, because the script is not working. How do I get it to work by adjusting the PHP script?

Cheers,

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You could hand-edit the published code to remove the fifth argument
to the mail() function. If you look at the code, you will see a line
that includes something like the following (the variable names are
not accurate at all, but this is the general idea):

mail($to,$subject,$body,$headers,$flags);

If you remove the fifth argument entirely, so that it reads like this:

mail($to,$subject,$body,$headers);

…then the mail function will complete on a safe mode server.
Remember, as with anything you hand-edit post-Freeway, these changes
will be overwritten each time you publish, and you will have to do
them again.

Walter

On Jun 12, 2008, at 1:48 AM, paulvw wrote:

I got it Walter. You are right. That is a choice they can make. One
more thing though: at this point they don’t get mail at all,
because the script is not working. How do I get it to work by
adjusting the PHP script?

Cheers,

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Actually, the line I found has only 4 arguments; have a look:

if (mail($recipient, $subject, $msg, $headers)){//

So that is probably not the problem then?

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter, I got it to work on the website - with your caroussel action actually… www.healthschool.nl
On the contact page I made an iFrame to my own host. I know, it is not charming but the only solution so far - unless you guys come up with another idea?

I like your caroussel action. Cool stuff and people really respond positively. Can’t stop playing with it myself… I didn’t dare to change everything in FW5 yet since on a test site some of the features suddenly stopped working, but FW4 is ok for this site.

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

No, it’s probably not. Do you have a view (through your host’s
control panel or similar) of the error log for your Web server? If
so, it would be instructive to step through the contact page on the
live server, then look at the error log and see what got reported.

Another thing you can do is to edit the PHP file on the server to
include these lines as early as possible in the script (right after
the opening <?php tag would be ideal).

ini_set('display_errors',1);
error_reporting(E_ALL);

You can delete these after you’ve tried the form a few times, but
they will tell you on screen every little thing that your server is
being cranky about!

Walter

On Jun 12, 2008, at 7:35 AM, paulvw wrote:

Actually, the line I found has only 4 arguments; have a look:

if (mail($recipient, $subject, $msg, $headers)){//

So that is probably not the problem then?

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, I have not succeeded with this; can’t find the error log. Anyway, I assume I have to give up on this the. Thank you all anyway for your help and support!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options