Date: 08/07/00
- Next message: SRV: "[PHP] split keyword in search engine"
- Previous message: M.vanderMerwe <email protected>: "RE: Re: [PHP] php3 case sensitivity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Victor wrote:
>I've already downloaded curl and htmldoc following the www.freshmeat.net
>links.
>I've written a simple script using htmldoc and It works pretty well.
>
>Why are you using "curl" ? Please, give me an example. -victor
'cos I've got PHP running as an Apache module, so I have to invoke the
webserver to generate the html page from the PHP source - hope that answers
your question. There are other tools I could use (wget, or lynx -dump, or
even sock <myscript.input) but I find curl works well, and I'm already
using it for other stuff.
/* curl | htmldoc | lpr */
$exstr="/usr/local/bin/curl -s \"http://localhost$url\" | ";
$exstr=$exstr . "/usr/bin/htmldoc --no-title --no-toc
--size a4 --fontsize 9 -t ps - | ";
$exstr=$exstr . "lpr -Phplaser ";
exec($exstr);
print "Should have generated and printed report on
<em>hplaser</em>";
HTH
Colin
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: SRV: "[PHP] split keyword in search engine"
- Previous message: M.vanderMerwe <email protected>: "RE: Re: [PHP] php3 case sensitivity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

