Try;
system ("/usr/bin/htmldoc -t pdf --webpage $name");
or,
system ("htmldoc -t pdf --webpage $name");
A full path would help. Unix usually sets the /usr/bin in your path, so
the second suggestion might work. You were not specific on the exact
problem you are having.
If you log into unix and are at the root directory the usr/bin/htmldoc
would work. If you are not in the root directory, not good. You would
need the / in the front.
Hope this helps,
Richard
David Cabrera wrote:
> Hey guys quick question
>
> i am having problems executing the following:
> <?php
>
> header("Content-Type: application/pdf");
> system ("usr/bin/htmldoc -t pdf --webpage $name");
> ?>
>
> HTMLdoc is a software that allows you to convert html
> to pdf. Now i have a link pointing to this mini php
> program to generate a pdf. IN this link i pass the
> variable $name. What would you guys recommend i do.
>
> Thanks .. I appreciated it/
>
> `dave
>