[Solved] How Retrive A Piece Of Text From A Source Website With PHP? [closed]


You could download the exact page you’re after using file_get_contents

$web = file_get_contents("http://google.com")

You’d then have to strip out whatever it is you want from the rest of the source code on the website. That can be done by using strpos or stripos (ipos being case insensitive) to find its location, and then using substr to extract that part of the string.

0

solved How Retrive A Piece Of Text From A Source Website With PHP? [closed]