note 65210 rejected from function.ereg by bjori
| From: | bjori@php.net | Date: | Wed, 26 Apr 2006 23:58:45 +0000 |
| Subject: | note 65210 rejected from function.ereg by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109798@lists.php.net to get a copy of this message | ||
Note Submitter: letcr01 at gmail dot com
----
Please help. I am a complete newb with PHP. I am basically trying to pull a full URL for an image
out of a page. The only constant in the image ends with '_m.jpg', it only occurs once in
the page and it can be anywhere on the page. Thanks in advance for any help. I tried the code
below, but it didnt work.
$in = file_get_contents("http://www.url.com/test") ;
preg_match ('/http://(.*)_m.jpg/sUi',$in,$regs) ;