PDA

View Full Version : Auto update page, depending on files in DIR/folder



Anayet
December 3rd, 2001, 21:08
Is it possible to have a page add basic links to itself once a file is added to the same directory?

For example, if theres a directory called files, and in that folder there was a page with some code in it called pageupdate (or something)

Could it be coded so that when a file is uploaded to the "files" directory, the pageupdate wold update its links, and add the new links automatically?


Is this possible?
If so, can anyone help me with what/how code etc etc - please...

Thanks

Canuckkev
December 3rd, 2001, 22:25
Yes, it is quite possible. All you would have to do is use the grep command in perl, not sure about php.

What would you be able to use, Perl, or PHP? I'm sure there is a very easy way to do it in both.

Anayet
December 4th, 2001, 14:18
Are there scripts available, if not, what code needs to be in the scripts.
I have access to both php & perl/cgi

Thanks:)

iLLuSioN
December 4th, 2001, 14:27
Maybe you can use something from this site (http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/)

Anayet
December 4th, 2001, 14:37
Originally posted by iLLuSioN
Maybe you can use something from this site (http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/)


Which script should i use :confused: :confused2 :confused: