Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


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

Rep: Reputation: 0
how to use php basename


can someone explain the use of:


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

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,
Old 04-25-2008, 11:11 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,563

Rep: Reputation: 140Reputation: 140
you can look for "basename" in the functions' 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...


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 04:07 AM
How to get the 'basename' (or what other.?) command to do what I want..? craftybytes Programming 1 02-13-2008 07:27 AM
basename ovince Programming 2 03-21-2007 10:47 AM
basename counterpart? glass Linux - General 1 08-24-2002 07:11 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:10 PM.

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