PHP Feedback Form woes

Hi, I have a colleague who has come back saying he’s had to patch the code
produced by the PHP Feedback Form action:

I have managed to get it working by replacing $_SERVER[‘SERVER_NAME’] with
$_SERVER[‘HTTP_HOST’] in the contact-go.php file.

I don¹t think your code works with standard PHP installs.

Is this likely to indicate it¹s hosted on one of the ³difficult² webhosts?

Best wishes Peter

================================
Peter Tucker, Oxford UK email@hidden


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

Yes I think that is very likely and I am sure that Tim would be interested in hearing exactly where the site is hosted (what hosting Co) and on what sort of Server.

David


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

Both of these environment variables are current, not odd, fairly
normal, etc. But the server has to be set to populate them with the
values you expect. HTTP_HOST is more amenable to Apache Name-based
Virtual Hosting, where one IP address is split among thousands of
named hosts. In that case, SERVER_NAME might be box123.yourIsp.com
while HTTP_HOST is www.example.com. In a server that is not using
virtual hosting, SERVER_NAME and HTTP_HOST are more than likely
identical.

Walter

On Dec 6, 2010, at 4:02 AM, Peter Tucker wrote:

Hi, I have a colleague who has come back saying he’s had to patch
the code
produced by the PHP Feedback Form action:

I have managed to get it working by replacing
$_SERVER[‘SERVER_NAME’] with
$_SERVER[‘HTTP_HOST’] in the contact-go.php file.

I don’t think your code works with standard PHP installs.

Is this likely to indicate it’s hosted on one of the “difficult”
webhosts?

Best wishes Peter

================================
Peter Tucker, Oxford UK email@hidden


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

We are also amongst those having problems with various ISPs responding to php Feedback Form Action. Two ISPs send back a correct eMail response, while the third, which is where the client will be eventually be hosting his WebSite, not only seems impervious to all support requests, all we get hit with are 550 errors, and requests for 755 CHMOD permissions to be applied, with which we have complied, to no obvious effect.

So which php files need to be edited, and where should the edits be uploaded to remain permanent, or must the files be changed every time Freeway is uploaded.

Alternatively, what information needs to be given to a stubborn ISP, so that their Server can be adjusted to handle our php Feedback Form requests?

Many thanks

Neil

On 6 Dec 2010, at 13:52, Walter Lee Davis wrote:

Both of these environment variables are current, not odd, fairly normal, etc. But the server has to be set to populate them with the values you expect. HTTP_HOST is more amenable to Apache Name-based Virtual Hosting, where one IP address is split among thousands of named hosts. In that case, SERVER_NAME might be box123.yourIsp.com while HTTP_HOST is www.example.com. In a server that is not using virtual hosting, SERVER_NAME and HTTP_HOST are more than likely identical.

Walter

On Dec 6, 2010, at 4:02 AM, Peter Tucker wrote:

Hi, I have a colleague who has come back saying he’s had to patch the code
produced by the PHP Feedback Form action:

I have managed to get it working by replacing $_SERVER[‘SERVER_NAME’] with
$_SERVER[‘HTTP_HOST’] in the contact-go.php file.

I don’t think your code works with standard PHP installs.

Is this likely to indicate it’s hosted on one of the “difficult” webhosts?

Best wishes Peter

================================
Peter Tucker, Oxford UK email@hidden


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


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

On Dec 6, 2010, at 5:24 PM, Neil Carter wrote:

We are also amongst those having problems with various ISPs
responding to php Feedback Form Action. Two ISPs send back a correct
eMail response, while the third, which is where the client will be
eventually be hosting his WebSite, not only seems impervious to all
support requests, all we get hit with are 550 errors, and requests
for 755 CHMOD permissions to be applied, with which we have
complied, to no obvious effect.

This sounds a lot like you are in an old-style CGI environment, where
the PHP files are run through a CGI interpreter rather than being
parsed within Apache’s response loop as is normal.

So which php files need to be edited, and where should the edits be
uploaded to remain permanent, or must the files be changed every
time Freeway is uploaded.

PHP FF creates a single handler file for each form that you attach it
to. This file is named yourformpage-go.php, where yourformpage is the
filename of your form page. If you are in such a CGI environment,
where PHP files need to have certain executable bits set, then you
would only adjust this -go.php file and you could ignore all others.

Alternatively, what information needs to be given to a stubborn ISP,
so that their Server can be adjusted to handle our php Feedback Form
requests?

Their server should provide a standard PHP environment, utilizing
mod_php under Apache 1.3 or PHP installed as a DSO (dynamically shared
object) under Apache 2.2. In that case, PHP files will Just Work™
without any funny permissions or other requirements. As long as they
are set the same as your other HTML files, they will execute within
the confines of the Apache security model and all will be right with
the world.

Any host who does not provide this baseline functionality should be
re-evaluated, as you can get this level of service from companies
charging less than $20 a YEAR for the privilege.

Walter


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