note 25097 added to features.commandline
| From: | literatist at hotmail dot com | Date: | Tue, 10 Sep 2002 19:19:17 +0000 |
| Subject: | note 25097 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36475@lists.php.net to get a copy of this message | ||
I'm wondering if it is possible to use the php executable to handle searches from an off-line
page through GET or POST methods.
What I'm trying to do is create a web-based CD that can do a search from a database or flat
file and present the results in HTML format.
Thus, the search page (.html) would have a form:
<form action="php.exe -f search.php">
<input type="text" name="keywords" size="25">
<input type="submit">
</form>
The search.php file would then search the flat file or data source and generate a list of results.
Is this possible?
One thing I had thought of to try was using the GET method and parsing $argv[1], assuming that would
be where the query string would show up. Would that work? Is there another way to do this?
Thanks.
cf
--
http://www.php.net/manual/en/features.commandline.php
http://master.php.net/manage/user-notes.php?action=edit+25097
http://master.php.net/manage/user-notes.php?action=delete+25097
http://master.php.net/manage/user-notes.php?action=reject+25097