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

include function being weird?
I have a very simple system to grab an IP outputted by a PHP file.. (for a project I have) but it ou

understanding functions and classes
Code: [Select]
class person {
var $name = "Jimmy Goe";

function get_nam

Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website

PHP Blog help
Need help with posting comments in a word press blog? I have a comments page where the comments are

Multi-image upload problems
Lets see if I can get some help on this one. Can anyone show me what I am doing wrong here. I'm just

I need some help with the IF command...
I have a large number of images in one section of my website with the .jpg format. I'm adding a bun

Random Number Generation And Probability
Hello, I am working on a function which has to insert data into a SQL table.

we have to suppl

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

Problem with PHP/mySQL login code
Hello,

There is an error in my login script and I can't figure out what it is...
I believe

Confused with Loop
guys, i got confused with Looping...this is the case

I have 3 stocks, let say "Stock A&q

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