Jump to content

Download HTML Code

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
8 replies to this topic

#1
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Hey guys, sorry, I've forgotten the function you use to download the HTML code of another page. Could anyone enlighten me?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#2
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
I don't know how to do it in PHP. But if you telnet to a page you will get the code.

Microsoft Telnet> open
< to > website 80 (443) {Depending on the protocol that is running}

You will get the source.

Edited by MeTh0Dz, 01 June 2008 - 04:50 PM.


#3
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Er, yeah, but I need the PHP function.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
curl

#5
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
That's the one! *slaps himself round head with UNIX manual*
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Erm, what's the command I use to parse out a certain tag?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#7
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
preg_match() - there is a reply i made somewhere when phpforfun asked a similar question.

#8
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
I know, I remember it, actually. I just can't remember the name of the thread.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#9
Guest_Jordan_*

Guest_Jordan_*
  • Guests
You can also just use fopen() to fetch the HTML but I doubt your host allows external URL fetching using fopen.