Forum Moderators: coopster
I have a php script that calculates the chinese horoscope of website visitors based on their birth details.
I have installed the script in two different Apache servers with different php versions. The script works with the older version of php and doesn't work with the newest version:
------
1st server (PHP Version 4.3.10)
<snip>
Here's the <snip> file for this server
------
------
2nd server (PHP Version 4.4.6)
<snip>
Here's the <snip> file for this server
------
If you run the script on the 1st server (click the submit button) the script will successfully tell you your chinese horoscope. If you run the script on the 2nd server the page will just refresh and nothing else will happen.
Here's the <snip> for the script.
I've tried everything within my powers but I can't get the script to work properly in the second server. In my humble opinion there must be something wrong either with the syntax of the php code (that is somehow not supported by the newer php version), or a server configuration that must be changed in the second server (perhaps enabling an option or something). Maybe the solution is simple but I cannot figure it out. So I'm handing it to you!
[edited by: dreamcatcher at 8:47 am (utc) on May 24, 2007]
[edit reason] no urls as per T.O.S [webmasterworld.com].Thanks [/edit]
Your second server has register_globals set to OFF, which means that any posted data must be accessed through $_POST['whatever'] rather than getting automatically set as $whatever. You need to edit the script so that any variables are referenced through the $_POST array.
(As an aside, you aren't allowed to post links to your websites on Webmaster World :) )