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"
$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

Echo-ing MySQL content and Keep Formatting?
I have data in my MySQL such as:

QuoteBlah blah

Blah blah

etc
but when i ech

Help me with some material on Open Text Overview.
Hi Experts,
Please help me out with some material on Open Text. I have been supporting AP Workf

FTP Programs
Here is a list of commonly suggested FTP Programs to use:

FileZilla
SmartFTP
CuteFTP

IP question
ive got 2 ip addresses both global from same user how would i detect if they are local to each other

this code is not working????
it says this error.. Warning: Division by zero in ..

the variables are correct, so why is th

Help! refer to a friend script with captcha code
Hi guys, I am posting on here in desperate need for some help with an ongoing search I have been doi

Need help with unexpected T-STRING error
I'm a newbie and I'm still learning PHP. However this error has me stumped. I've googled, searched t

Reditecting pages based on logic
Newbie here, apologies in advance!

I am trying to use the header function to forward one of a

Help with lottery style system?
I'm working on a currency system for forums and it is going to have a type of lottery system built i

ImageCreate()
When I create an image and add text to it I want my text to be replaced with a PNG image, because th

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