var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
PHP spider to copy content from another site?
Is it possible to copy data from one site such as text, links, and images and transfer it to another site with PHP? If so, are there any free examples? This is not really for me, but someone asked and I wanted to find out. Thanks.
Yes, it's called "content scraping". Not sure how ethical it is, but it's possible. You can do it using the following:
$contents = file_get_contents('SourceWebsite');
If you want to grab all pages, images, css etc from a site then you could just shell out to wget (rather than parsing the html for links etc).
If the material is original and copyrighted - which it would be simply by being published - you may be violating the law in various jurisdictions.
By ThatScriptGuy in forum Employment / Job Offers
Last Post: 04-03-2008, 02:05 PM
By superprogram in forum Programming Discussion
Last Post: 07-22-2007, 10:24 AM
By jayzee in forum Programming Discussion
Last Post: 08-11-2005, 03:03 AM
By vampiredust in forum Employment / Job Offers
Last Post: 04-15-2005, 12:24 AM
By foofighter in forum Programming Discussion
Last Post: 02-21-2003, 09:29 AM