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

Share admin accross websites
I'm using .net memberships and roles in one of my sites, but I need to be able to share logins and p

form submit at godaddy?
Trying to test form submission at GoDaddy and it does not seem to work. Here's the page...

h

PHP XML extraction text
I would like to extract an xml text and have that text directly echo(print) out on my web page. Her

socket makes browser hang...
I have a socket server, and I am having a problem at the moment...

A browser sends a http hea

PHP Session Issue
I'm having an issue with one section on my website dealing with sessions. Now I know that myself and

Storing the referrer in session... problems with tabs
Hello All

I am currently working on an ERP project based on the MVC methodology, when a user

Xacute search within SQL results
I have a query that is pulling data, and I want to return a specific value from the results of that

why does my session end?
my connect.php starts the session just so you know
i can navigate arround my site fine except whe

Hit counter updating once per IP - IP HIT COUNTER
I have a hit counter, for the amount of views on a tutorial.
It'll do the query and then do..

help with variable
I've got a problem, i want to echo some images depending on the $id, however for me to get that id i

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