getting a website's source code as a variable? How?


Posted on 16th Feb 2014 07:03 pm by admin

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"
Did you know?Explore Trending and Topic pages for more stories like this.
$sourcecode=magicfunction($url);
//so that i could manipulate it or whatever

thanks!
No comments posted yet

Your Answer:

Login to answer
279 Like 17 Dislike
Previous forums Next forums
Other forums

reading xml faster than DB call?
I am trying to optimize a high traffic website, and I enabled a feature where there are three photos

Preloading images
Posting this question here because I am not sure where this should belong.I am building an asp.net a

mysql select query problem
how can i select multiple fields from multiple table in one query like

i have table name t1 a

CRM?
I think that's what they're called. Customer Management System? Anyway. Is there any good free ones

constructor ?
i have written this program and made 3 constructors in the class and i want to call them in the main

SWF image using php?
Hello once again.

My latest en devour requires me to produce an image of a static .swf that i

DB2 for z/OS, LUW, iSeries
Hello, In this forum a lot of threads related to other members of the DB2 family than DB2 for z/OS

Parse error: syntax error, unexpected T_ELSEIF in /home/......html/item.php on l
I do not know what is wrong with this. Hope some one can help. I do nto want to post the entire site

PHP template help
Ok, I don't know if anyone can help me but I am using PHP templates to make a site. I am a newbie an

Why does my crawler script suddenly end with no error?
Hi.

I have written a web crawler script. It will visit a large number of URL's with cURL.

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash