Welcome Guest, Not a member yet? Register   Sign In
Perform HTTP Request and save HTML to string


How do I perform an HTTP request inside a controllers function to an HTML file and then save the HTML in a string for further processing. My HTML file contains a JavaScript code which generates the actual HTML. Here's the HTML file:

Does CI have any built-in helpers to do this??


[eluser]Sean Murphy[/eluser]
You could use file_get_contents or CURL:

My hoster has disabled both file_get_contents and curl functions. Is there any other way or a hack/workaround perhaps??

[eluser]Sean Murphy[/eluser]
Have hey disabled fopen too? What about fsockopen?

Theme © iAndrew 2016 - Forum software by © MyBB