Reply to Re: variable for directory

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация