11-01-2007, 03:11 PM
I'm currently using get_file_contents to read the contents of an html file on another server. Is this the best way or should i be using curl or something else?
11-01-2007, 05:08 PM
That's perfectly fine.
Just remember that each hit on your page, is a hit on their server.
Consider caching the HTML.
if date of cached version is older than 1 day or cache does not exist
download new version
save to cache
display cached version
11-01-2007, 05:31 PM
Ok cool the only reason i ask though is because i already have CURL installed i was just wonderin if curl is better.
11-01-2007, 07:08 PM
It wouldn't really be. It would be helpful if you need to do something more than the basic 'fetch HTML'.