Page 1 of 1
V 4.3.11 vs. 5.2.1
Posted: Sun Mar 04, 2007 1:08 am
by retrodog
I have a simple contact form that works on a server that supports PHP 4.3.11 but when i move the file to a server that support PHP 5.2.1, the form no longer works. In fact, it looks like the PHP is getting read as HTML and displays on the page. Has anyone ever had that experience or know what I need to do to correct this?
Posted: Sun Mar 04, 2007 2:45 am
by s.dot
Check your php configuration on the new server.
Save that as phpinfo.php and run it... if you can.
There are several things it could be
Apache not recognizing the php extension
PHP errors are not displaying to show you any errors such as:
-short tags on/off
-register globals on/off
-magic quotes on/off
Even the use of deprecated superglobals like $HTTP_POST_VARS
Posted: Sun Mar 04, 2007 9:13 am
by feyd
Many hosts have chosen to use .php5 as the extension for PHP 5 installations to parse.
PHP Configuration
Posted: Sun Mar 04, 2007 11:39 am
by retrodog
Thanks. i already have a test page that tells me that info but I didn't think to look at it thoroughly...I'm not all that familiar with what could be throwing it off...any chance you can take a look?
http://www.christchurchlife.com/staging/test.php
scottayy wrote:Check your php configuration on the new server.
Save that as phpinfo.php and run it... if you can.
There are several things it could be
Apache not recognizing the php extension
PHP errors are not displaying to show you any errors such as:
-short tags on/off
-register globals on/off
-magic quotes on/off
Even the use of deprecated superglobals like $HTTP_POST_VARS
Posted: Sun Mar 04, 2007 11:45 am
by feyd
The directives scottayy pointed out are all off. That's a good thing.
Have you read
this and
this?
Posted: Sun Mar 04, 2007 2:50 pm
by retrodog
thanks, I'll take a look. I use a hosting service so I have no idea what/how they configured everything or if I can even have them change whatever is causing the issue. Its been a while since I looked at PHP, so I am having to dig alot to find answers and I am trying to help out a friend with troubleshooting their page.