Hello allheres what im trying to do scrape a page for data between two words ,reformat it as a link and then follow that link to get the final info i want ..all works fine till the second part comes into play--following the link
here is my script which produces the link i need and the eror code. any help is welcome--
of course im googleing this at the same time so i might find an answer

ciao
`<?php
$content=$_GET["link"];
$FILE = file_get_contents($content);
$FILE = str_replace('value="','"http://www.vidhog.com/embed-',$FILE);
$FILE = str_replace('">','.html"',$FILE);
preg_match('|<input type="hidden" name="id"(.+?)<input type="hidden" name="fname"|is',$FILE, $matches);

print $matches[1];

?>``

Member Avatar for diafol

Perhaps if you gave an example of the text (content) that you're trying to manipulate.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.