21 Nov reading directory in PHP Posted by shweta | 0 Comments
I want to read a directory on my local disk and then want to insert all information in a table. say if there are 10 tables in the directory i want to insert the file name, size, type, owner, time of creation modification etc into a database.
up till now i can read all files from directory and can list them using an array but how can i have only the name of the file in string format.
please reply i really need it

0 Replies to "reading directory in PHP"


    Please be polite and helpful and do not spam or offend others. We promise you will be treated the same way.

    Log in your free account or if you still haven't joined our Webmaster Community Reward Program, you can create your free account now.

    Posting tip:
    if you use code in your comments please put it in these tags [php], [sql], [css], [js]
    PHP code example: [php] echo date("Y-m-d"); [/php]

    Thank you,
    ~ PHPJabbers team ~