Have you tried to telnet to localhost:80 and given it a valid request header to see what your response from teh webserver is?
when connected via telnet to port 80, type: GET / HTTP/1.1[enter] Host: yourhost.com[enter] [enter] [enter] You should see something like: HTTP/1.1 200 OK Date: Mon, 25 Feb 2002 23:20:35 GMT Server: Apache/1.3.20 (Unix) PHP/4.0.6 mod_ssl/2.8.4 OpenSSL/0.9.6 X-Powered-By: PHP/4.0.6 Transfer-Encoding: chunked Content-Type: application/pdf This will tell you if the data is indeed being transferred....hope it helps. Court > -----Original Message----- > From: Sviss Cobazor [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 25, 2002 3:14 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] passthru() on Win98 ?? > > > Hi everyone. > > I've posted earlier about this problem but haven't gotten any > solution yet. > I'm using HTMLDOC application for html > pdf convertion but I > can't get > passthru() to work. > I'm using Win98/Apache/PHP 4.1.1/MySQL and everything so far has been > smooth. > I have tested my header() funktion with a simple redirection > script and it > works. I've also tested htmldoc.exe from the command line and > it works too. > I have also tried with full path for both htmldoc.exe and > html page but it's > still a no go :( > > Here is an example that should show a pdf file in the browser: > > <? > function topdf($filename, $options = "") { > header("Content-Type: application/pdf"); > flush(); > passthru("htmldoc -t pdf --quiet --jpeg --webpage $options > \'$filename\'"); > } > > $file = "full path to some html page"; > $option = ""; > > topdf($file, $option); > ?> > > This gives me a blank page in my browser. Looking at the > source in this page > it seems that not even the header is being send. I have tried > with system() > and exec() too but it makes no difference. I have > application/pdf pdf added > in my mime.types file. > If you have an idea about how to get this to work please note that an > example from WinNT or Win2k may not be of any use because I > think that the > fact that I'm using Win98 is very important in this case. > > Please help if you can. > Thanks.... > ~ Sviss > > > > > -- > 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