and the result of the program
echo Return value : $num_return\n;
echo Result :\n;
print_r($ary_result);
-Message d'origine-
De : Nicolas Guilhot [mailto:[EMAIL PROTECTED]]
Envoye : lundi 25 juin 2001 12:59
A : [EMAIL PROTECTED]
Objet : [PHP] Passing an array to a C program from a php
I have a big array (nearly 1000 lines) that I would like to pass to a C
program. I don't want to create a temporary file to pass my array (If
possible ?!?), and I don't think the command line will fit my needs.
Is there a way to execute a program with a php string as the standard
input.
Why not make a separate .txt file which is read by the PHP script to make
its variable with file(), and have the C file read it with ifstream to make
up its variable?
--Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
I have a big array (nearly 1000 lines) that I would like to pass to a C
program. I don't want to create a temporary file to pass my array (If
possible ?!?), and I don't think the command line will fit my needs.
Is there a way to execute a program with a php string as the standard
input.
Hi all,
I have a big array (nearly 1000 lines) that I would like to pass to a C
program. I don't want to create a temporary file to pass my array (If
possible ?!?), and I don't think the command line will fit my needs.
Is there a way to execute a program with a php string as the standard
Hi all,
I have a big array (nearly 1000 lines) that I would like to pass to a C
program. I don't want to create a temporary file to pass my array (If
possible ?!?), and I don't think the command line will fit my needs.
Is there a way to execute a program with a php string as the standard
input.
6 matches
Mail list logo