[PHP] Possible to read JavaScript results into a string?

2005-08-08 Thread Brian Dunning
I have an external JavaScript that I use on several of my sites. It returns a web counter and does some other logging. It's accessed like this: script language=javascript src=http://www.mydomain.com/log.js;/ script No rocket science there, this is common and it works great. That call

Re: [PHP] Possible to read JavaScript results into a string?

2005-08-08 Thread Richard Davey
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