Posted by iktorn on 04/01/07 13:55
cmk128@hotmail.com napisał(a):
> $lines2 = file('http://www.google.com');
> print_r($lines2);
> this doesn't work too
>
"File" is not the best way to download other page, try curl
http://php.net/manual/pl/ref.curl.php
If you scroll down, class written by Sean Huber can be a good start to
understand better curl functions.
Just copy that class and type this
$c = new CURL();
print_r($c->get("http://www.google.nl"));
--
Wiktor Walc
http://phpfreelancer.net
Navigation:
[Reply to this message]
|