capture a webpage to later process it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I want to read the results of an URL address, to later process it and insert part of them as internal code.

If I use include or require, they inserts ALL the resulting code, but I want to do something like:


blah, blah, blah....
<?php
 $result_webpage = somephpfunc('http://other.sit/externalpage.html');
if (eregi("result:([:alnum:]+).*([:alnum:]+\.jpg)",$result_webpage,$array_match)) { echo "<h2>External status:".$array_match[1]."<br>image: <img src=\""..$array_match[2]."\"></h2>"; }
?>
.... blah, blah, blah


TIA,

,_, (O,O) J. Alejandro Ceballos Z. buzon@xxxxxxxxxxxxxxxxxxxxxxx ( ) -"-"----------------------------------------------------------------- http://alejandro.ceballos.info movil: (33) 3849-8936
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux