Need help making a simple php script

I know pretty much nothing about PHP, so i haven’t got anything wrote down. If anyone could link me a tutorial for what I want or write one for me or something I’d be greatful.

Basically what i’m looking for is a script that will get certain lines of text off another page and post it on the php page. I believe it’s called a parser or something? I’m not sure. I can go into more detail in PM so post here or send me a mesasge if you would like to help/

Thanks…

Ermm I don’t know how to edit but by off another page, I mean info off a complete different website & server.

Example: A script that will take a certain line off a google search and ‘paste’ it into the php page on my server

Hello

please let me know your problem clearly

i will surely help you -----

Thanks

Hi SaKing,

I don’t know if this could help you but this function returns whatever is between 2 delimiter in a given string… if you use it with file_get_contents('http://www.heretheurl.com/pagetoparse.html) it should work well.

[php]
$string = file_get_contents('http://www.heretheurl.com/pagetoparse.html);

function get_string_between($string, $start, $end) {

$string = " ".$string;

$ini = strpos($string,$start);

if ($ini == 0) return "";

$ini += strlen($start);

$len = strpos($string,$end,$ini) - $ini;

return substr($string,$ini,$len);

}
[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service