LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to use php basename (https://www.linuxquestions.org/questions/linux-server-73/how-to-use-php-basename-637656/)

hil4d 04-24-2008 09:00 PM

how to use php basename
 
hi

can someone explain the use of:

basename(dirname(__FILE__)

I am trying to follow instructions from a book but its not clear.

Also:
Is it ok for me to ask for direct assistance from some in the forum?

I am interested in web dev and I have learnt quit a bit but I am having trouble putting all I've learnt together to create a complete web app.

Please let me know,
Thanks

j-ray 04-25-2008 10:11 AM

www.php.net
you can look for "basename" in the functions' description


Description
string basename ( string $path [, string $suffix ] )

Given a string containing a path to a file, this function will return the base name of the file.

means: the name of the file without directories...


All times are GMT -5. The time now is 02:05 AM.