Re: PHP without a webserver

From: Date: Sat, 14 Apr 2001 19:17:44 +0000
Subject: Re: PHP without a webserver
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-48584@lists.php.net to get a copy of this message
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.

« previous php.general (#48584) next »