How to go nuts …
Reconstructing a years-in-service PHP4 Registration page for my web site to PHP5, and find this contradiction:
Early in the script, L. 41: require_once $_SERVER[‘DOCUMENT_ROOT’]."/cnnct2mysql.php";
- Running script from unix, php RGSTRTN_07_7a.php, throws following error;
PHP Warning: require_once(/cnnct2mysql.php): failed to open stream: No such file or directory in /home/…/RGSTRTN_07_7a.php on line 41
PHP Fatal error: require_once(): Failed opening required ‘/cnnct2mysql.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /home/vg010web02/68/65/2926568/web/auxlib/web07/HTMLpages…/RGSTRTN_07_7a.php on line 41
But require_once $_SERVER[‘DOCUMENT_ROOT’]."/cnnct2mysql.php", has the correct address.
- Running script from Mozilla Firefox, www.u-sit.net/.../ RGSTRTN_07_7a.php, throws no error. None recorded in error log. The script runs up to the registration form for a customer to fill in, accepts in put to the form, then (presumably) posts form to PayPal sandbox. However, it runs no further and throws no error; hence, no hint of where to look next.
What does this apparent contradiction mean? Unix doesn’t get past the compiler. In case (2.) the compiler does not stop the script.
ANY SUGGESTIONS WOULD BE APPRECIATED
THNX
usit