Quick Search:
Oracle PL/SQL Code Library
Find Or Post Oracle Jobs
Oracle Discussion & Chat
 PHP Code: Get Current Directory Name Jump to:  
Category: >> PHP Code >> Get Current Directory Name Bookmark and Share

<< lastnext >>

Snippet Name: Get Current Directory Name

Description: This gets the name of the directory which contains the current script.

Also see:
» Show the current season (spring, summe...
» Saving Remote Images With PHP
» Include All Files In A Directory
» More File Type Detection in PHP
» Get Current Page URL
» Get Current Directory Name
» Measure script run time
» Random Image from Directory
» USERS: view currently connected users
» Database Links: CURRENT_USER
» TIMESTAMP: Get current timestamp
» Date functions: CURRENT_DATE
» Date functions: Current Date
» Show info on current context
» Write to File example
» Get oldest file in directory
» Show current time as PNG-image
» Check if a file exists
» Recursive Directory Browser
» List files in directory
» Find the current URL of the page
» Export table to Excel or MS Word file
» Current_timestamp
» Date Functions: Current_date
» Protect Writable Directory
» Directory Listing #2
» Directory Listing
» Count lines in file
» Copy File From Server
» Delete all files in directory

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: May 27th, 2009

FUNCTION getCurrentDirectory() {
	$position = STRRPOS($path,'/') + 1;
	RETURN SUBSTR($path,$position);

Oracle Magazine
and Oracle White Papers

SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 21 users online    © 2009 psoug.org

Forgot your password?