Quick Help. Hopefully.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eggoz
Forum Commoner
Posts: 43
Joined: Fri Dec 27, 2002 8:51 pm

Quick Help. Hopefully.

Post by eggoz »

I created a script to list only dirs and not files. The only problem is it only works in one dir, ./. Here is the Script. When I set it to another dir, no matter what dir it is, it will list all files and dir. I can not understand why.

The other part of my question is regrading paths. I know how to print the full path of a file. Is there a way to only print part of the path? For example instead of root/sub1/sub2/file, it will only print sub/file ? Thanks for the help.
Post Reply