|
Posted by Els on 10/10/18 11:18
Els wrote:
> How do I get the directory of the current file?
I've taken a different approach, but still can't figure it out.
To test if the current file is filename.html inside /dir/subdir/, I
use this:
if($PHP_SELF==("/dir/subdir/"."filename.html"))
Now, I want to change that to:
if($PHP_SELF==("/dir/subdir/". anything ))
Where 'anything' is literally anything; letters, numbers, dashes,
dots, slashes....
With what do I replace 'anything' to make the if statement return true
on any file in that /dir/subdir/ ?
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Van Halen - Jump
[Back to original message]
|