English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Does anyone know how I can get an html page contents from a remote server with php?

I am trying to find a way to have a script running that downloads the text from a website when it updates and puts it on my website...

2006-10-12 17:37:39 · 2 answers · asked by topgun553 1 in Computers & Internet Programming & Design

2 answers

Simple:

$page = file_get_contents ('http://remoteserver.com/page.htm' );

or

copy('http://remoteserver.com/page.htm' , 'mypage.htm');

See documentation:

http://www.php.net/copy
http://www.php.net/file_get_contents

__________

2006-10-14 05:54:49 · answer #1 · answered by NC 7 · 0 0

It would be just .

2006-10-13 00:40:22 · answer #2 · answered by Tim 6 · 0 0

fedest.com, questions and answers