RE: php 4.3.3 on apache 2.0.47

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



try calling fopen by itself and then do fread()

$fd = fopen($file, 'r')

$buffer = fread($fd, 10000)



-----Original Message-----
From: manon [mailto:purplespirit@hccnet.nl]
Sent: Monday, September 29, 2003 12:58 PM
To: php-windows@lists.php.net
Subject:  php 4.3.3 on apache 2.0.47


apache 2.0.47
php 4.3.3
win XP Pro

With the above combination most of the scripts I have don't work under
Apache, however they do running Omni HTTPd.

With Apache for example remote includes fail:
Warning: failed to open stream: Bad file descriptor 
Failed opening 'http://somedomain.com/test.htm' for inclusion
(include_path='.;c:\php4\pear') 

Line
$fd= fread(fopen($HTTP_REFERER, "r"), 100000); 

Gives warning

Warning: fopen failed to open stream: Bad file descriptor
Warning: fread(): supplied argument is not a valid stream resource

and fails to execute the rest of the script


My former setup had PHP 4.2.3, no such problems (however some trouble
with Omni). I tried the latest snapshot php4-win32-STABLE-200309291230,
no relieve there. I think I might have messed up something in the
settings, but I can't figure out what/where, due to hard disk failure I
lost all my data, had to rebuild my system and none of my former
settings can be retrieved. If any of you has any clues, most welcome.

Thanks for your attention.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux