|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-07 00:04 UTC] sathia dot musso at gmail dot com
[2006-08-07 07:16 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 22:00:01 2025 UTC |
Description: ------------ i'm using this function to collect the img tags on a external webpage. i found that the collector wont work if the tag is out of standard ie: <img src="/images/83.jpeg" class="image" width="75" height="100" border="0" alt="bodyjoy83.jpeg" title="Nome del file : bodyjoy83.jpeg size : 37KB widthxheight : 450x600 inserted: 28 Apr 2006"> (there are actually several line break inside the title attribute) Reproduce code: --------------- $doc = new DOMDocument(); $doc->loadHTMLFile($safe_url); $tags = $doc->getElementsByTagName('img');