Jump to content

Archived

This topic is now archived and is closed to further replies.

ReVeR

PHP getting other web pages.

Recommended Posts

Hello.
I need to download another web page from my web site. How cna i do that?
say the web page is www.google.ca, how can i get the source code using php?
Thx

Share this post


Link to post
Share on other sites
fopen() - Check the manual for more info and related functions.

Share this post


Link to post
Share on other sites
Why is everyone so interested in doing this the last few days?

In addition to fopen and fread, you can use file_get_contents (http://www.php.net/file_get_contents) and the cURL functions (http://www.php.net/curl).

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.