domdocument
How do I get the src attribute of img tags?
I load the DOM by an external url as such: $dom = new DOMDocument; $dom->loadHTMLFile( \"external_url.html\" );[详细]
2023-03-14 20:51 分类:问答Proper character encoding to display "”"?
I\'m having some nasty character encoding problems that I just can\'t figure out. Essentially, I\'m screen scraping some HTML off of a site using PHP, then running it through PHP\'s DOMDocument to ch[详细]
2023-03-14 18:23 分类:问答Sitemap creation with DOMDocument throws parsing error
I\'m creating a sitemap in XML, it works well with one record displayed, but when including 1+ records, it throws an error:[详细]
2023-03-13 16:51 分类:问答Document Object Model function to take an array of links from a database and process them one by one
I\'ve been trying to troubleshoot a program I\'m trying to build and I\'ve managed to figure out what is causing the problem, however to fix it I have been unsuccessful.[详细]
2023-03-13 05:51 分类:问答remove links with empty insides, add a redirect link to sites that not in allowed list
<?php $allowedURLHosts = array( \'youtube.com\', \'google.com\' ); $blockedURLHosts = array( \'yahoo.com\',[详细]
2023-03-12 09:15 分类:问答PHP htmlentities() without converting html tags
I\'ve found a few posts which refer to the problem, but none of them fully resolve it. I need the function which will output the content converting all special characters in the way the htmlentities([详细]
2023-03-12 07:16 分类:问答outputting data with PHP into XML
I have a little script here which uses DOMDocument to get my data from my mysql database and put it in a structured XML which is later on used to be read from.[详细]
2023-03-12 04:06 分类:问答php domdocument exception loadHTMLFile
I am having a strange behavior in my script. That has me confused Script 1. $dom = new DOMDocument(); $dom->loadHTMLFile(\"html/signinform.html\");//loads file here[详细]
2023-03-12 02:00 分类:问答DOMDocument xmlns attributes - how to get them?
I\'m using DOMDocument to read an XML(SVG), which has namespac开发者_StackOverflowes in it. I iterate through the attributes of all nodes, but I can\'t seem to get the \'xmlns\' type attributes of the[详细]
2023-03-11 22:53 分类:问答PHP DOMDocument And DOMXpath
I am trying to find the last paragraph tag in a block of HTML using DOMDocument/DOMXpath but can\'t seem to figure it out.[详细]
2023-03-09 17:18 分类:问答