Re: Need help using "php.exe"
| From: | speedfreak at chello dot be | Date: | Mon, 12 Apr 2004 14:44:53 +0000 |
| Subject: | Re: Need help using "php.exe" | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23422@lists.php.net to get a copy of this message | ||
Eugen wrote on 11/04/04 16:35:
Hi all, When you parse a file using the command "php.exe -f c:\myfile.php > c:\myfile.htm" , what command is required to set a variable. Example: In IE addressbar, when i type(doesn't matter what server i use) : http://localhost/myfile.php?thevariable=anyvariable, the "myfile.php" file is now parsed with indicated variable. But if i launch "php.exe -f c:\myfile.php?thevariable=anyvariable > c:\myfile.htm" , the output file (c:\myfile.htm) contains one line: No input file specified. How can i make it work, without using a webserver ?Read up on PHP's commandline features in the manual and the user contributed notes for some valuable time-saving insights: http://www.php.net/manual/en/features.commandline.php Cheers