You are here: Re: [PHP] Possible to read JavaScript results into a string? « PHP « IT news, forums, messages
Re: [PHP] Possible to read JavaScript results into a string?

Posted by Richard Davey on 10/04/84 11:23

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация