|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1999-07-21 10:00 UTC] beppe at internode dot it
Using Apache I run php4 in a dos shell and no output when require() is used. Even errors in script are skipped and even if required file is missing. Also html data before script is not in output PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Can't get any output (errors or correct data) Sample script: Simple output #1 <? require("NotExists.inc"); echo( "Simpler output #2\n"); ?>I'm sorry, I thought it was clear, I wrote the previous script and saved it as test.php the I run "php test.php" from a dos shell under NT 4.0 and I got only the header output, no other data, if I remove the require("NotExists.inc"); line it works fine. It doesn't work even if I require an existing file. If I go through Apache 1.3.6 for WinNT it's the same. I tested it with the shell after I found it didn't work because I have an autoprepend in the ini file which uses requires. If I eliminate the autoprepend statement my site could work but of course I have no required data so it's still a problem. I hope it's clearer now it was a script file and through the shell or apache I have no output if I use a require statement. Bye