Re: passthru(), system() and exec() - help please

From: Date: Mon, 25 Feb 2002 08:44:59 +0000
Subject: Re: passthru(), system() and exec() - help please
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-12258@lists.php.net to get a copy of this message
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" <alain@sonic.net> wrote in message news:NDBBKDPANIGMPIPILNBBEEKGDDAA.alain@sonic.net... > Show us the part of the script where you use these functions. > A+ > Alain > > > -----Original Message----- > From: Sviss Cobazor [mailto:sviss@nospam.dk] > Sent: Sunday, February 24, 2002 4:37 PM > To: php-windows@lists.php.net > 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 sviss@nospam.dk > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.windows (#12258) next »