HELP NEEDED 3 !!! Downloading page with php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Eddy_25
Forum Newbie
Posts: 7
Joined: Mon Mar 22, 2004 2:45 am
Contact:

HELP NEEDED 3 !!! Downloading page with php?

Post by Eddy_25 »

Hello!

How can i download a page from some location? i guess that is easy, something with headers() but i'm not sure.

So, i need to download some, for example, HTML page and then parse it.

Thank you very much!
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Eddy_25
Forum Newbie
Posts: 7
Joined: Mon Mar 22, 2004 2:45 am
Contact:

Post by Eddy_25 »

Thanks.

You said there that CURL comes defaulty with php, but when i follow the link i see that PHP needs to be started with some parameters. If i understud correctly. So if I put code where i used CURL on some server on the net , is that garanteed to work?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

To check whether CURL has been installed run

Code: Select all

phpinfo();
Eddy_25
Forum Newbie
Posts: 7
Joined: Mon Mar 22, 2004 2:45 am
Contact:

Post by Eddy_25 »

Ok. So, no so sure stuff. Never mind. Thanks for help.

What do you think about 3 questions below this one in index? :)
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Eddy_25 wrote:What do you think about 3 questions below this one in index? :)
Please elabourate.
Eddy_25
Forum Newbie
Posts: 7
Joined: Mon Mar 22, 2004 2:45 am
Contact:

Post by Eddy_25 »

"HELP NEEDED ... " and "HELP NEEDED 2! ..."

thanks...
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

I have the same strong feelings about it that I have about my favourite bag of flour falling over in China.
Post Reply