Re: Getting started - PHP on Win98

From: Date: Mon, 17 Sep 2001 07:43:07 +0000
Subject: Re: Getting started - PHP on Win98
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9376@lists.php.net to get a copy of this message
"The X-Powered by:" i believe can be disabled in PHP.INI by setting the parameter that decide wether PHP should reveal itself or not. Just as of now i don't remember exactly which parameter this is, but you should have no trouble finding it in the .INI file. As for your trouble with the Webserver not being accessible when 'online' - i think this is a question of telling your browser to look locally instead of trying via the default route (which is the dialup). Try accessing your webserver by the localhost IP (http://127.0.0.1) Tomas Valusek wrote: > 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 -- Michel Laine Engineer / Network Administrator SYSTEM TECHNOLOGY SWEDEN AB Phone:(+46)-8-982255 Fax:(+46)-8-982060 Snail mail: Vretenvagen 2, 171 54 SOLNA, SWEDEN E-mail: michel@systemtech.se WWW: http://www.systemtech.se

« previous php.windows (#9376) next »