Gladly :)
I've tried almost everything sone it's not quotes or full paths that is the
problem.

<?
function topdf($filename, $options = "") {
    header("Content-Type: application/pdf");
    flush();
 passthru("htmldoc -t pdf14 --quiet --jpeg size A4 --webpage $options
\'$filename\'");
}

$option = "";
$file = "C:\Program Files\Apache\htdocs\jetas_login.html";
todpf($file, $option);
?>

It seems that not even the header is getting send. I get a blank html page
from this and I wanted a pdf document from the htmldoc application. I have
tested it from the command line and it does work. Also I have tested that my
headers work by making a simple redirect script.
The problem is that not passthru nor system nor exec works on my Win98
mashine. I use Win98/Apache/PHP 4.1.1/MySQL. Everything works fine but these
3 funcions doesn't.


"Alain Samoun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Show us the part of the script where you use these functions.
> A+
> Alain
>
>
> -----Original Message-----
> From: Sviss Cobazor [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 24, 2002 4:37 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] passthru(), system() and exec() - help please
>
>
> Hi everyone, I'm running Win98/Apache/PHP 4.1.1/MySQL.
> Everything so far has been really smooth and I have had no problems at
all.
> The function passthru() however is really killing me. I can't get it to
work
> nor system() og exec().
> So now I just wanted to know if anyone running the same combo as me has
> gotten this/these function(s) to work?
>
> Please let me know asap if you know how to make this work, I really need
it.
>
> Thanks...
>
> ~ Sviss [EMAIL PROTECTED]
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to