[PHP-WIN] Re: Failure remote includes

2003-08-14 Thread m.r.
Update for the record: remote includes work with the latest stable snapshot (my version: php4-win32-STABLE-200308051230.zip). You might encounter the famous "cannot load php/sapi/php4apache2.dll" after this one. Experiment with location of the php4ts.dll, I had to move it to the PHP/sapi dir to ge

[PHP-WIN] RE: Failure remote includes

2003-08-01 Thread m.r.
Thanks yes, fopen works on all remote files, no blocking. Guess then it's Apache version 2 making the trouble. Original Message--- Sek-Mun Wong wrote 2003-08-01 15:11:18 in reply to RE: Failure remote includes -- PHP Windows Mailing List (http://www.php.ne

[PHP-WIN] Re: Failure remote includes

2003-08-01 Thread Sek-Mun Wong
M.R., my educated guess is that somehow the include code works differently for php-sapi on apache2. It's not optimal, but unisntall apache2, reinstall 1.3.2x and test it out. (nuke it from orbit, it's the only way to be sure) "M.R." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] As a

[PHP-WIN] RE: Failure remote includes

2003-08-01 Thread m.r.
As a follow up on my earlier reply, I found out how to read the socket and GET / HTTP, and that works on the remote files. However, a simple include doesn't. _Original message___ Sek-Mun Wong wrote August 1 2003 8:19 in reply to Re: Failure remote includes <..silly

[PHP-WIN] Re: Failure remote includes

2003-08-01 Thread Sek-Mun Wong
No problem... 2.0 gave me a lot of problems (2.0.47), not that I would run apache2/win32/php-sapi in production for the moment. as for fopen, if you're intent to try, then: $fp = fopen ("http://www.example.com/";, "r"); while (!feof($fp)) { $content .= fread($fp,1024); } fclose ($fp); print

[PHP-WIN] RE: Failure remote includes

2003-08-01 Thread m.r.
No, it's not silly, it's a good question, but indeed allow_url_fopen=On, it's On by default in PHP 4,3 installations. However, how to fopen eand read a socket via HTTP, I guess my knowlegde fails as how to accomplish this. I don't *need* apache 2, I guess, and might install 1.3.28, but for now d

[PHP-WIN] Re: Failure remote includes

2003-07-31 Thread Sek-Mun Wong
silly one but i assume you already have "allow_url_fopen=On" in php.ini? (it should tell you anyway, that this is not set, plus the error below) works for me in 4.3.2/winxp pro/apache 1.3.28. I guess if you don't *need* apache 2, don't do it. another test might be to fopen and read a socket via