Tag

DOMDocument

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Jan 9, 2024 · Backend Development

Using PHP Built‑in Functions to Read, Modify, Create, and Parse XML Data

This tutorial explains how to use PHP's SimpleXML and DOMDocument functions to load, read, modify, create, and parse XML files, providing clear code examples for each operation and demonstrating how to output or save the resulting XML.

DOMDocumentPHPSimpleXML
0 likes · 5 min read
Using PHP Built‑in Functions to Read, Modify, Create, and Parse XML Data
php中文网 Courses
php中文网 Courses
Dec 14, 2023 · Backend Development

Building a Simple Web Crawler with PHP on Linux

This article explains how to create a basic web crawler in a Linux environment using PHP, covering prerequisite installations, script development with cURL and DOMDocument, execution steps, and sample output while emphasizing legal and ethical considerations for web scraping.

DOMDocumentLinuxPHP
0 likes · 4 min read
Building a Simple Web Crawler with PHP on Linux
php中文网 Courses
php中文网 Courses
May 4, 2023 · Backend Development

How to Write a Simple PHP Web Crawler

This guide explains how to create a basic PHP web crawler by using cURL to fetch pages, DOMDocument and XPath to parse HTML, and then storing the extracted data, while also providing a complete example script and reminders about legal and ethical considerations.

DOMDocumentPHPbackend development
0 likes · 3 min read
How to Write a Simple PHP Web Crawler
Laravel Tech Community
Laravel Tech Community
Mar 8, 2022 · Backend Development

Parsing XML in PHP with DOMDocument, XMLReader, and DOMXPath

The article provides a step‑by‑step guide on parsing XML in PHP, showcasing three techniques—DOMDocument, XMLReader, and DOMXPath—to extract weather data such as condition and temperature, complete with full code examples and explanations of key functions.

DOMDocumentPHPParsing
0 likes · 4 min read
Parsing XML in PHP with DOMDocument, XMLReader, and DOMXPath