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

Transaction variant for VA02 not working
My requirement is to have transaction for user to only add the output and print a sales order.

Stats of viewers
Hello. I have a website in php and people can login. I want to make an admin control panel where u c

What are causes of a connection-timeout with fopen()?
Hello! Here is the situation: The server I host my website on just upgraded it's PHP build from 4.4.

Can you help please? Php file
I have to write this php file to allow users to register their nicknames on nickserv

For an I

Implementing Single Sign-On using SAML 1.1, x.509, LDAP in C#.net
Hi, I got a requirement from the client i.e implementing single sing on using SAML 1.1( LDAP &

Asset Transfer from One plant to another within same company code
Hi,

Please advise how to transfer one asset from one plant to another plant within same c

Using loop to count number of entries
I'm writing a program that must ask user to type in numbers. After each entry, the program has to re

Content-Disposition: attachment; filename=... not working as i thought it should
taken the following code from the php.net site the script is not working.

what is not happeni

Simple MySQL script is not working
Hey guys,

Just familiarizing myself with PHP and MySQL. I am following along in the O'Reilly

login to other site by sending post variables
hey,

here is my problem: my school gave me a mail account for school-stuff use. they mail us

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