Page 1 of 1
How may I retrieve the filename of itself dynamically???
Posted: Fri Sep 06, 2002 10:07 am
by creata

How may I retrive the file attributes of itself dynamically by PHP. I can't find this kind of information from my books. Please help.
Besides, if anyone know which book on this topic, please let me have the details. Thanks.

Posted: Fri Sep 06, 2002 10:43 am
by Takuma
Try looking through the PHP manual.
http://www.php.net/manual
thanks... can you give me a search term???
Posted: Fri Sep 06, 2002 11:10 am
by creata
as captioned.
Posted: Fri Sep 06, 2002 11:17 am
by twigletmac
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
thank you
Posted: Fri Sep 06, 2002 11:32 am
by creata
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!!!