Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: passing array into shell script


Message #1 by "Sangtim" <sangtim@y...> on Fri, 23 Feb 2001 20:53:19
I have two text area forms that allow someone to input a large number of
lines, like a resume and comments.
Here is my code for the php file: 

$arresume = explode("\n",$resume);
$arcomment = explode("\n",$comment); 
$command = "sh try.sh 1 \"$arresume\" \"$arcomment\"; 
passthru($command); 

And here is my code for try.sh: 
try "${1}" "${2}

Then it will goto C program to input the resume and comments into database. 
These codes are not working properly with the array. How do I pass the
arrays into the shell script? How far off am I? Please reply me ASAP.
Thanks.

  Return to Index