I'm newbie on Php. I cannot write codes but only modify.
I need a code doing this:
I'll put text files in a folder like file1.txt,file2.txt ...
I want to search this files, list most recent 10 and if files
call, script will put into the site design with <pre> tags.
I hope I can explain what I need.
I dont know Php is suitable for that.
Please help me about this.
Thanks.
Indexing text files in a folder
Moderator: General Moderators
ok, but since this is a helping forum just a few hints.
take a look here: http://www.php.net/manual/en/
take a look here: http://www.php.net/manual/en/
- and search for these functions
- opendir
- readdir
- closedir
- stat
- usort