WHM that works with an FTP server
Moderator: General Moderators
WHM that works with an FTP server
I created a online File Manager but I have noticed a very important flaw. When a user uploads a file via FTP the File Manager is not updated. All files in the file manger are recorded in a database(just file names and locations).
How can I fix this? Is there a way to scan for all files/folders in a specific folder?
I'm currently using PHP 4
How can I fix this? Is there a way to scan for all files/folders in a specific folder?
I'm currently using PHP 4
how do I find folders with that? I can find files okay now but how do I find folders?
Also, how would I use glob to find the files in a different folder. Something like this?
Also, how would I use glob to find the files in a different folder. Something like this?
Code: Select all
glob("/hosting/gibons/www/*.*");The script has to work with both Windows and Unix. In the PHP manual is shows examples with glob("*.txt"); and glob("*.*"); but I'm not sure if you can put a dirrectory infront of that. thats all.
I just thought of a way to find folders and files. Although there might be a possible exploit in it. I would just have to find the files without .'s in them. Then check if the name is actually a dirrectory.
I just thought of a way to find folders and files. Although there might be a possible exploit in it. I would just have to find the files without .'s in them. Then check if the name is actually a dirrectory.