Can PHP open URL - file on distant website to view its source (HTML particularly)
Just whicf function to use
fopen()
file_read() //or how it is called
Any comments or suggestions - SHOOT (me)
Thanks Ahead !
PHP as a spider
Moderator: General Moderators
Lots of functions can, such as file_get_contents() and file(). If you just want the entire remote site in a string then i'd use file_get_contents()
See http://php.net/stream for more info on the stream 'enabled' functions.
See http://php.net/stream for more info on the stream 'enabled' functions.
- evilmonkey
- Forum Regular
- Posts: 823
- Joined: Sun Oct 06, 2002 1:24 pm
- Location: Toronto, Canada