Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

$_REQUEST now not working?

Status
Not open for further replies.

nickroper

Programmer
Jun 1, 2004
24
GB
Hi,
I have a PHP script that has been running fine on the server at my ISP. Code extract is as follows:

<?php
$action = $_REQUEST['Submit'];
(carry out conditional statements based on $action)
?>

Been working fine until the weekend, but now the web-server generates 'The page canot be displayed'

If I take out the $action = $_REQUEST['Submit']; then I don't get an error - but of course the logic doesn't work. I have tried using $_POST and also:

$method = strtolower($HTTP_SERVER_VARS['REQUEST_METHOD']);
$_vars = $method == "get" ? $HTTP_GET_VARS : $HTTP_POST_VARS;

$action = $_vars[Submit'];

but all generate the same 'Page cannot be displayed'

If I run the script on another server it is also fine.

Is there anything server-specific in php.ini or apache config files that could have caused these variables to fail?

Thanks in anticipation...

Nick Roper
 
Fixed !!!

It was a file size issue with the error log.

Must make note to review & archive error log more often (and fix errors!)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top