|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-15 05:06 UTC] r dot staribacher at hypercms dot com
I'm using Win98 SE and PWS with PHP 4.2.1. No additional modules in use. Procedure: 1.step: There is a php-script that includes a second php-file using the function include (). 2.step: the second php-file itself loads a text-file using the function file(). The first step works well, but in connection with the second step (loading the text-file) the MS-PWS crashed. If you just perform step 2 it will work. Are there any problems with nested php-scripts which try to load another external file? Also other functions like readfile () causes the same problem. Please note: This problem doesn't occur on Linux and Apache. Thankyou! Best regards, Rudolf Staribacher PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 17:00:02 2025 UTC |
Hello! Sorry, it took such a long time. But now I could test the script on Win 2K. The same problem occurs, so it's not only a Win 98 related problem. Same procedure: I call a PHP-script via IE 5.0 Browser (don't matters which browser is in use). This script includes another PHP-script via http-request using the function include(). And the second PHP-script loads a file via http using the function file(). If you try the same operating on local file system it will work! But trying to use http on Win OS will cause an error, don't matters if you are using Apache, IIS or PWS. So e.g.: <?php .... include ("http:/www.test.net/testscript.php"); .... ?> Will result to an error, if the testscript.php tries to load another file: <?php .... $data = file ("http:/www.test.net/testtext.txt"); .... ?> This will work! Note: the include() will not use http! <?php .... include ("testscript.php"); .... ?> testscript.php: <?php .... $data = file ("http:/www.test.net/testtext.txt"); .... ?> Maybe you can help me! As I already told, this problem won't occure on Linux. Thankyou! Best regards, Rudolf Staribacher PS: The link you gave me (http://snaps.php.net/win32/php4-win32-200206150200.zip), seems to be not correct.