Re: [PHP] Save page as text

2005-06-30 Thread Richard Lynch
On Wed, June 29, 2005 2:22 pm, [EMAIL PROTECTED] said: > I have page with PHP and Javascript code and I need to a link or bottun in > it to save its content to a plain text file. (I'm using an apache server > in a machine running Windows 2003, and I want to be able to use this > feature in IE 6 and

Re: [PHP] Save page

2004-05-11 Thread Nadim Attari
"Brandon Holtsclaw" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > try something like > > $handle = fopen ("http://www.pagetoget.com/thispage.html";, "rb"); > $contents = ""; > do { > $data = fread($handle, 1024); > if (strlen($data) == 0) { > break; > }

Re: [PHP] Save page

2004-05-10 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * Thus wrote Mike Mapsnac ([EMAIL PROTECTED]): > > Hello > > > > I' m writing php script that will request page and save it locally. The > > page URL will be parameter (example: > > http://www.pagetoget.com/thispage.html). How php can request such

Re: [PHP] Save page

2004-05-10 Thread Curt Zirzow
* Thus wrote Mike Mapsnac ([EMAIL PROTECTED]): > Hello > > I' m writing php script that will request page and save it locally. The > page URL will be parameter (example: > http://www.pagetoget.com/thispage.html). How php can request such page and > save it locally on the file? $ch = curl_init(

Re: [PHP] Save page

2004-05-10 Thread Brandon Holtsclaw
try something like $handle = fopen ("http://www.pagetoget.com/thispage.html";, "rb"); $contents = ""; do { $data = fread($handle, 1024); if (strlen($data) == 0) { break; } $contents .= $data; } while(true); fclose ($handle); then you have all text from the .html page in $c

Re: [PHP] Save page

2004-05-10 Thread Serhan D. Kiymaz
I think you have to write apache rules to handle the request (search for ReWriteRule) and an index.php can save the file regards Mike Mapsnac wrote: Hello I' m writing php script that will request page and save it locally. The page URL will be parameter (example: http://www.pagetoget.com/this