Bug #17770 Updated: PHP problems with include() via http

From: Date: Mon, 15 Jul 2002 22:47:01 +0000
Subject: Bug #17770 Updated: PHP problems with include() via http
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14246@lists.php.net to get a copy of this message
ID: 17770 Updated by: r.staribacher@hypercms.com -Summary: PHP crashed PWS when loading files Reported By: r.staribacher@hypercms.com -Status: Feedback +Status: Open -Bug Type: PWS related +Bug Type: *Web Server problem -Operating System: Windows 98 SE +Operating System: W98SE, W2K PHP Version: 4.2.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-06-15 06:25:07] mfischer@php.net Can you please try the following: 1) is this true for w2k too? Many problems reported with '98 are related to the specific OS and aren't valid for W2k and equal systems 2) Can you try http://snaps.php.net/win32/php4-win32-200206150200.zip ? ------------------------------------------------------------------------ [2002-06-15 05:06:20] r.staribacher@hypercms.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17770&edit=1

« previous php.bugs (#14246) next »