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

turning an array into a string then poping it into a db
Hi im just wondering how you get a requested array into a single string then pop it into the db so f

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

the variables are correct, so why is th

How to file_get_contents when login required?
Hello!

I am trying to read data from a page that you have to be logged into to view, I am try

Firefox displaying PHP source code??
Currently testing a site thats almost built, am going to be including php on a sidebar on all pages

frames get header location..
i have two frames, one top, one bottom. how do i do a form on the bottom frame that gives me the ur

how to use two buttons with php
hi i have one form. there are three fields which are to be filled by the user. and then there are tw

C++ Http request?
Code: string Response = "LOGIN_UNSUCCESSFUL"; System.Net.WebRequest request = Sy

need good snippet manager
Hi. as i am coding and learning more, it is becoming difficult to manage code snippets. how you mana

Deleting Partners on the Customer Master.
Does SAP handle removing the Partner from Open Sales Orders when a Partner is deleted in the Custome

DateObject and Nulls
Hi all,

I have an array mapped to a value object. One of the items in the array is a PHP Date

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