Help - Search - Members - Calendar
Full Version: [PHP]How to store web pages using PHP?
MSFN Forums > Coding, Scripting and Servers > Web Development (HTML, Java, PHP, ASP, XML, etc.)

   
Google Internet Forums Unattended CD/DVD Guide
pulkit
Is it possible to store some web pages whose addresses are mentioned before in an order.
I mean if i enter some 100 web addresses before i want the PHP script to store them in a database automatically by visiting the site.

Pls help me and tell me the function or script
markw
Well you could use the function file_get_contents() and pass it a url and get the html in a string. Then you could save the string in a database. The only problem is it wouldn't download the pictures, but you could make a script that parses the html and finds the <img> tags and gets the images based on that.

Mark
Rhelic
Stealing content from other sites is immoral, let's just get that out of the way. I'm trying to give you the benefit of the doubt but I've read your other posts and it sounds like it's pretty clear that you want to start a new site and steal content from other similar sites.. tsk tsk, smells like a thief.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.