Comments (2)
You should use this code:
$htmlResponse = file_get_contents('http://fex.baidu.com/');
$htmlResponseDomObject = str_get_html($htmlResponse);
$htmlResponseDomObject->find('title', 0)->plaintext;
from simple_html_dom.
Thanks for help, an old issue lives so long, other PHP community modules seem to like this one as well, So we have tossed out and picked up NodeJS ecosystem now.
from simple_html_dom.
Related Issues (11)
- doesn't work on windows 10 HOT 1
- error line104 unexpected '[' in simple_html_dom.php
- PHP 7.2.5 HOT 2
- file_get_contents(): stream does not support seeking
- 为什么我找一个标签返回不了结果,内部死循环了吗? HOT 1
- 1372行 if (!preg_match("/^[\w-:]+$/", $tag)) { 错误 HOT 1
- can not fomat http://search.11st.co.kr/Search.tmall?kwd=123 HOT 1
- iconv(): Detected an illegal character in input string HOT 1
- How to deal with overtime issues? HOT 1
- getAttribute error while the attribute name include '-' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple_html_dom.