Hi Plutarck,
@ 2:40:28 PM on 4/14/2001, Plutarck wrote:
> Ahh, so it's the location of the script that get's passed.
Yes:
% cat test.php
<?php
while(list($i,$arg) = each($argv))
{
print "$i: $arg\n";
}
?>
% php -q test.php a b c d e f g
0: test.php
1: a
2: b
3: c
4: d
5: e
6: f
7: g
%
> Now, if the script was coming from a program, is there a way to hand the
> file directly to PHP, or will a temporary file have to be used?
I have no idea. What language? Using system() in C and Perl, I'm
sure you could concoct something. Why would you want to do that?
> So if a user filled in a form and clicked a button in the program, the
> program would toy with the form a little, then send the form to PHP. Is that
> possible using the CGI executible?
I have no idea what you're talking about here, but if you're wanting
to build some type of GUI based application you might as well either
use PHP-GTK (http://gtk.php.net) or just use a HTML, PHP and a web
server.
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]