Besides, if anyone know which book on this topic, please let me have the details. Thanks.
How may I retrieve the filename of itself dynamically???
Moderator: General Moderators
How may I retrieve the filename of itself dynamically???
Besides, if anyone know which book on this topic, please let me have the details. Thanks.
Try looking through the PHP manual. http://www.php.net/manual
thanks... can you give me a search term???
as captioned.
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
As a brief aside - putting your message in the message body instead of in the subject makes it less confusing to try and work out what the question/answer/anything is?
What filename are you looking for specifically? The scripts name:
Mac
What filename are you looking for specifically? The scripts name:
Code: Select all
$_SERVERї'PHP_SELF']thank you
WOW!!! It's worked.
Indeed, I have a PHP script + mySQL on an online photo gallery where I set each photo's filename as variable. Now, I needed to hard-coded each photo's filename so that it will do all the things following automatically.
Now I can using the thing you teached me + some string manipulation (to get rig of the "/") to complete my job.
Thanks very much!!!
Indeed, I have a PHP script + mySQL on an online photo gallery where I set each photo's filename as variable. Now, I needed to hard-coded each photo's filename so that it will do all the things following automatically.
Now I can using the thing you teached me + some string manipulation (to get rig of the "/") to complete my job.
Thanks very much!!!