Re: Possible to read JavaScript results into a string?

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

 



Hello Brian,

Monday, August 8, 2005, 6:38:54 PM, you wrote:

BD> <?php
BD> $x = file_get_contents('http://www.mydomain.com/log.js');
BD> // also tried urlencode() but that did not help
?>>

BD> The result:

BD> Warning: main(http://www.mydomain.com/log.js) [function.main]: failed
BD> to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in c: 
BD> \Inetpub\wwwroot\test.php on line 2

Your code will work providing that PHP is not running in Safe Mode
and allow_url_fopen is enabled in your php.ini file.

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 Zend Certified Engineer
 "I do not fear computers. I fear the lack of them." - Isaac Asimov

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux