I'm trying to get contents of somes files via another server with PHP using file_get_contents()
and file()
. Everything's fine but it takes a lot of times to load the page. Otherwise, if I get contents of a local file, it takes like 0,2 secs. I've tried this method but it didn't work.
Is there a way to get the content of the file quicker and still using PHP? Or combine PHP with js?
Thank you!