Getting started - PHP on Win98

From: Date: Sun, 16 Sep 2001 21:29:26 +0000
Subject: Getting started - PHP on Win98
Groups: php.windows 
Request: Send a blank email to php-windows+get-9373@lists.php.net to get a copy of this message
Hello, I just downloaded and manually installed PHP 4.0.6 on my Win98 machine. As long as I use a dial-up connection, no web server is installed. I'd like to use PHP as an off-line preprocessor, generating html files to disk. When I generated my first page, the generated code looked like this: X-Powered-By: PHP/4.0.6 Content-type: text/html <html> <head> <title>Pokus s PHP</title> </head> <body> Hi, I'm a PHP script! </body> </html> As you can see, there are two header lines in the beginning of file, although I used a -f command-line switch. How can I get rid of these two lines? I also manually added a php file extension association with single action - Run. I inserted this command line c:\php\php.exe -f "%1" >"%1.html" and expected to have resulting html in the same folder as a source php file - but it doesn't work - why? I have searched a manual for an explanation, but I've found nothing. Thanks for any help. Tomas Valusek

« previous php.windows (#9373) next »