Re: [PHP] Newbie: Reading unix directory information from PHP

2002-07-23 Thread Jason Soza
Maybe opendir() and readdir() would work for you? opendir(): http://www.php.net/manual/en/function.opendir.php readdir(): http://www.php.net/manual/en/function.readdir.php Jason Soza - Original Message - From: Paul Oh [EMAIL PROTECTED] Date: Tuesday, July 23, 2002 3:03 pm Subject:

RE: [PHP] Newbie: Reading unix directory information from PHP

2002-07-23 Thread Peter
Hi Paul, this should help you out ?php $LastLine = exec(ls -lrt, $AllOutput, $ReturnValue); print(Last Line: $LastLine BR\n); print(All Output:BR\n); for ($index = 0; $index count($AllOutput); $index++) { print($AllOutput[$index] BR\n); } print(BRBR\n); print(Return Value:

RE: [PHP] Newbie: Reading unix directory information from PHP

2002-07-23 Thread Peter
To: Paul Oh; [EMAIL PROTECTED] Subject: RE: [PHP] Newbie: Reading unix directory information from PHP Hi Paul, this should help you out ?php $LastLine = exec(ls -lrt, $AllOutput, $ReturnValue); print(Last Line: $LastLine BR\n); print(All Output:BR\n); for ($index = 0; $index count