Re: Form Submitted without Submit Button????
| From: | Ernest E Vogelsinger | Date: | Tue, 19 Nov 2002 02:35:55 +0000 |
| Subject: | Re: Form Submitted without Submit Button???? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125018@lists.php.net to get a copy of this message | ||
At 02:42 19.11.2002, vernon spoke out and said:
--------------------[snip]--------------------
>> In case you have them already available in your script, you could execute
>> the geozip.pl using exec() or system(), and merging the result into your
>> output.
>
>They are in the script. But how do I use these exec() or system()? Are they
>javascript? Could you give me an example?
--------------------[snip]--------------------
They are PHP functions: http://uk.php.net/manual/en/function.exec.php
You would
$output_lines = array();
$retcode = 0;
exec('/path/to/geozip.pl', $output_lines, $retcode);
The array $output_lines will then hold every single line of the output of
geozip. The $retcode variable holds the return code.
As I have no clue about what geozip does, or how it might be called, nor
how the output of the geozip script is formatted, I cannot give further
hints. I'm sure someone will chime in here.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/