CodeIgniter Forums
file_get_contents/curl alternative - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: file_get_contents/curl alternative (/showthread.php?tid=36009)



file_get_contents/curl alternative - El Forum - 11-18-2010

[eluser]Tud[/eluser]
Hello,

I'm developing an application which is using a customer IIS server.
On the server "allow_url_fopen" is off and curl extension is not installed

What can i use instead of file_get_contents?
Thanks


file_get_contents/curl alternative - El Forum - 11-18-2010

[eluser]smilie[/eluser]
Hm, your options are a bit limited then.
Ajax / jQuery may do the trick.

Cheers,
Smilie


file_get_contents/curl alternative - El Forum - 11-18-2010

[eluser]Dennis Rasmussen[/eluser]
Can't use JS cross-domain unless the target trusts you.
If you have access to the source you are trying to fetch, you can use many other alternatives like json, soap, xml etc.