jbroder
12-09-1999, 03:42 PM
I am new to PHP, so here is a simple question.
I found the safe mode ls command in an earlier posting.
When I try to access it on the command line, it works
great. When I put it into a php script, I only get the
last file. Here is my script:
[nbsp][nbsp]$arr_do =[nbsp][nbsp]array(exec("/big/dom/PHP_bin/ls -l /big/dom/PHP_bin/ls /big/dom/xgu
itarwar/www")) ;
Which returns the name of the last file in the directory in a scalar variable (not a one set array). Clearly, I don't
know how to set up an array. But I am following the instructions in the only PHP book I could find (by David Medinets).
Please help...
I found the safe mode ls command in an earlier posting.
When I try to access it on the command line, it works
great. When I put it into a php script, I only get the
last file. Here is my script:
[nbsp][nbsp]$arr_do =[nbsp][nbsp]array(exec("/big/dom/PHP_bin/ls -l /big/dom/PHP_bin/ls /big/dom/xgu
itarwar/www")) ;
Which returns the name of the last file in the directory in a scalar variable (not a one set array). Clearly, I don't
know how to set up an array. But I am following the instructions in the only PHP book I could find (by David Medinets).
Please help...