ReVeR Posted February 26, 2006 Share Posted February 26, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/3612-php-getting-other-web-pages/ Share on other sites More sharing options...
zq29 Posted February 26, 2006 Share Posted February 26, 2006 fopen() - Check the manual for more info and related functions. Quote Link to comment https://forums.phpfreaks.com/topic/3612-php-getting-other-web-pages/#findComment-12563 Share on other sites More sharing options...
hitman6003 Posted February 26, 2006 Share Posted February 26, 2006 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). Quote Link to comment https://forums.phpfreaks.com/topic/3612-php-getting-other-web-pages/#findComment-12570 Share on other sites More sharing options...
ReVeR Posted February 26, 2006 Author Share Posted February 26, 2006 many thanks, i will go check that out. Quote Link to comment https://forums.phpfreaks.com/topic/3612-php-getting-other-web-pages/#findComment-12579 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.