| Index
» Projekty
» phpMyEdit
» Fórum
» Get and Post not working in IIS vs. Linux |
 |
matthartman
Založený: 01.12.2009
Príspevky: 2
Zaslal: 2009-12-01 18:54
Návrat hore
Odpovedať s citátom
|
I've been tasked with resolving an issue on a web application developed with phpMyEdit. Prior to my arrival on the scene the application was moved from Linux to a Windows environment running IIS 7.0.
The IIS server is setup to run fastcgi and renders the page fine. The problem is when the form is posted the variables aren't passed properly. In the debug output it shows that the _REQUEST and _POST variables under "PHP Variables" are changing appropriately, however the print_get_variables and print_post_variables functions are returning "No GET variables found" and "No POST variables found."
It runs properly on the Linux server.
Any ideas would be much appreciated. I don't have a thorough knowledge of php, cgi and known issues with IIS - I come from an ASP and ASP.NET background.
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-12-02 16:50
Návrat hore
Odpovedať s citátom
|
I've never heard of print_get_variables and print_post_variables. Burn the MS server and use Linux based hosting, which accounts for about 80% of all web servers, for good reasons. File paths are notably different, so maybe some include files are not being found, and possibly error_reporting is off in PHP and errors are not being displayed. Set error_reporting(E_ALL); in your PHP script, or check error logs. Include a copy of the dBug script from
http://dbug.ospinto.com/
in the page footer and perhaps that output will reveal some causes.
|
matthartman
Založený: 01.12.2009
Príspevky: 2
Zaslal: 2009-12-02 17:29
Návrat hore
Odpovedať s citátom
|
Thanks for the feedback Doug.
I was able to solve the problem by changing $HTTP_GET_VARS to $_GET and $HTTP_POST_VARS to $_POST.
The functions were actually: print_get_vars() and print_post_vars() - my bad.
As far as switching back to Lynux, you will have to take it up with my IT director :P. I don't disagree with you, but its not my decision and the decision to change servers was made a few months before I got here.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|