LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-24-2008, 09:00 PM   #1
hil4d
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
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
 
Old 04-25-2008, 10:11 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,556

Rep: Reputation: 140Reputation: 140
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash script - how to get 'basename' command to do what I want..? craftybytes Linux - Software 8 02-14-2008 03:07 AM
How to get the 'basename' (or what other.?) command to do what I want..? craftybytes Programming 1 02-13-2008 06:27 AM
basename ovince Programming 2 03-21-2007 09:47 AM
basename counterpart? glass Linux - General 1 08-24-2002 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration