Page 1 of 1

Assign some content of a page to a variable

Posted: Fri Oct 27, 2006 4:02 am
by byenary
What i want to do...
I want to store the content of webpage into a variable (to store in database)
For example, I want to store the result of this page (which gives some text) in variable
http://api.hostip.info/get_html.php?ip= ... ition=true

Sombody knows a way to this ?

Thx

Posted: Fri Oct 27, 2006 4:17 am
by volka
file_get_contents can do that.
see http://de2.php.net/ref.filesystem

what when fopen disabled

Posted: Fri Oct 27, 2006 2:03 pm
by byenary
And what when fopen and file_get_contens is disabled for security reasons, probably have to go call a c program to do the job ?

Posted: Fri Oct 27, 2006 2:07 pm
by feyd