Re: Possible to read JavaScript results into a string?

From: Date: Mon, 08 Aug 2005 17:49:44 +0000
Subject: Re: Possible to read JavaScript results into a string?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220236@lists.php.net to get a copy of this message
Hello Brian, Monday, August 8, 2005, 6:38:54 PM, you wrote: BD> <?php BD> $x = BD> 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

« previous php.general (#220236) next »