rudi souza Posted September 17, 2009 Share Posted September 17, 2009 Hello to all Ive ran into a big problem with a new hosting service that our company has been using. Some of our clients have began using this host on our recommendation, and they have a Linux based plan. Their control panel gives them the option to use either php 4 or php 5. Our system, wich is the system our clients use, requires php 5. But PHP 5 wont function properly on this new host. Form data does not go trough the server. $_POST, $_GET, ENV_VARS, and any other super global that should contain form data is always empty. php://input is empty too. So...no forms works at all. I called support and they told me that "version 4 of PHP is ran under apache, while version 5 of PHP is run under CGI, we are aware of these problems with version 5 running under CGI and we have no idea how to fix it - thats why we tell our customers not to sign up a linux plan intending to use php 5". I know any of you would think by now "just change host". But, as much as Id love too, Im unable to - strict orders from the boss. I dont know the first thing about configuring PHP under CGI and how would it be possible to cause an error that makes parsing form data always null. Id be EXTREMELY gratefull if anyone could help me out, or point me out to some resources that I might look into. Thanks in advance, cheers Quote Link to comment Share on other sites More sharing options...
nicephotog Posted October 12, 2009 Share Posted October 12, 2009 You need to get a php configuration output script and put it in the root of your server and call it. This is al that is in the script: <? phpinfo(); ?> These other variables below can contain things required for modifying scripts for platform or are an alternative though deprecated. $HTTP_POST_VARS $_POST $HTTP_GET_VARS $_GET $_SERVER $_HTTP_SERVER_VARS $HTTP_ENV_VARS $_ENV $GLOBALS Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.