![]() |
|
#1
|
|||
|
|||
Getting HTML Source with PHPHey guys,
If I wanted to get the HTML source of a specified URL, how would I do that? Code:
Sorry if this isn't too clear, I'm kinda new at this. ~Optical |
|
#2
|
|||
|
|||
Nevermind...Quote:
Heh, right after I submited this post, I found the answer. Code:
~Optical |
|
#3
|
||||
|
||||
|
Hello Optical,
Yes, that would work too but note that file() returns an array. In fact, the simplest way to get the HTML source off a web page is by using file_get_contents() if your PHP version supports it and the if the fopen wrappers have been enabled. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Having a problem | Chuckles | Computer Hardware Forum | 19 | 13-Sep-2004 12:17 |
| uisng php to display php | dopee | MySQL / PHP Forum | 6 | 14-May-2004 18:40 |
| loading an html file from a db using php | mdonovan | Web Design Forum | 8 | 21-Mar-2004 23:38 |
| web server in secure mode not connecting to http application | tcsasp | Apache Web Server Forum | 0 | 06-Nov-2003 00:08 |
| html to php | tenaki | Web Design Forum | 17 | 28-Oct-2003 16:18 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The