physaux Posted October 17, 2009 Share Posted October 17, 2009 Hey guys, is there any way for me to get the source code of a website as a variable for me to work with? Ex: $url="http://www.google.com" $sourcecode=magicfunction($url); //so that i could manipulate it or whatever thanks! Link to comment https://forums.phpfreaks.com/topic/178047-solved-getting-a-websites-source-code-as-a-variable-how/ Share on other sites More sharing options...
cags Posted October 17, 2009 Share Posted October 17, 2009 file_get_contents will work in some situations. Link to comment https://forums.phpfreaks.com/topic/178047-solved-getting-a-websites-source-code-as-a-variable-how/#findComment-938773 Share on other sites More sharing options...
physaux Posted October 17, 2009 Author Share Posted October 17, 2009 Thanks, exactly what i needed Link to comment https://forums.phpfreaks.com/topic/178047-solved-getting-a-websites-source-code-as-a-variable-how/#findComment-938776 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.