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

Reply via email to