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

2002-07-23 Thread Peter
4 July 2002 9:23 AM > To: Paul Oh; [EMAIL PROTECTED] > Subject: RE: [PHP] Newbie: Reading unix directory information from PHP > > > Hi Paul, > > this should help you out > > $LastLine = exec("ls -lrt", $AllOutput, $ReturnValue); > > print("Last Line: $L

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

2002-07-23 Thread Peter
Hi Paul, this should help you out \n"); print("All Output:\n"); for ($index = 0; $index < count($AllOutput); $index++) { print("$AllOutput[$index] \n"); } print("\n"); print("Return Value: $ReturnValue\n"); ?> should work a treat for you ... cheers Peter > -Original Message-

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: