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
"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;
> }
* 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
* 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(
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
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
6 matches
Mail list logo