RE: [PHP] Passing an array to a C program from a php script??

2001-07-02 Thread Nicolas Guilhot
Here is a solution I've found for my problem. I use join to convert my array into a string. Then, I use exec to run the c program, having a pipe passing the result from an echo. I would like to know if this solution is a good one (in term of speed, security...), and would appreciate your comments

Re: [PHP] Passing an array to a C program from a php script??

2001-06-27 Thread Richard Lynch
> 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

Re: [PHP] Passing an array to a C program from a php script??

2001-06-26 Thread mailing_list
> 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 st

RE: [PHP] Passing an array to a C program from a php script??

2001-06-26 Thread Jason Murray
> 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 > inpu

RE: [PHP] Passing an array to a C program from a php script??

2001-06-26 Thread Jason Lustig
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, e-