Page 1 of 1

Help of listing files from directory

Posted: Wed Jan 14, 2009 6:14 am
by sanju
Hi

I need help for creating two php snippets, the work is

1) A PHP snippet that reads

all files and directories form the current folder and read "File Name" and "File Size" in

to a table 2) Another snippet that reads from a text file "Delivery Note*.txt" and writes

the content to a table element. The script should allow to read from different sections

of the text file. The sections are likely "Customer Name", "Delivery Notes", "Delivery

Date", "Packing List".


Any one pls help

regards
Sanju

Re: Help of listing files from directory

Posted: Thu Jan 15, 2009 12:36 am
by paqman
http://www.spoono.com/php/tutorials/tutorial.php?id=10

As for the second question, do you have access to a mysql database? It's really simple to set one up and php works great with mysql.