Hopefully this is simple. I am trying to pull an outside webpage into an array in PHP in order to take values from it..
I have tried this as described on php.net:
The page just stalls and eventually doesn't do anything. I have a line "done" set to be echoed at the end of the page which also does not appear when I add the above code.
I'm running this on a Windows server with IIS 6.0.
The page I am getting this info from is: http://us2.php.net/manual/en/function.file.php
The tip on PHP.net says:
I can load local files, but just not remote files. Any ideas?
Thanks!
I have tried this as described on php.net:
PHP:
$lines = file('http://www.example.com/');
I'm running this on a Windows server with IIS 6.0.
The page I am getting this info from is: http://us2.php.net/manual/en/function.file.php
The tip on PHP.net says:
I have enabled "allow_url_fopen" as well.Tip: You can use a URL as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename and Appendix M for a list of supported URL protocols.
I can load local files, but just not remote files. Any ideas?
Thanks!