note 65209 added to function.ereg

From: Date: Wed, 26 Apr 2006 23:31:02 +0000
Subject: note 65209 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-109796@lists.php.net to get a copy of this message
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) ; ---- Server IP: 64.71.164.2 Probable Submitter: 12.43.194.124 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.ereg.php Edit -- http://master.php.net/note/edit/65209 Del: integrated -- http://master.php.net/note/delete/65209/integrated Del: useless -- http://master.php.net/note/delete/65209/useless Del: bad code -- http://master.php.net/note/delete/65209/bad+code Del: spam -- http://master.php.net/note/delete/65209/spam Del: non-english -- http://master.php.net/note/delete/65209/non-english Del: in docs -- http://master.php.net/note/delete/65209/in+docs Del: other reasons-- http://master.php.net/note/delete/65209 Reject -- http://master.php.net/note/reject/65209 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#109796) next »