Welcome Guest, Not a member yet? Register   Sign In
how to get directory name in codeigniter
#1

[eluser]Unknown[/eluser]
Hi I'm new in codeigniter.so plz tell me how to get directory name in codeigniter.
#2

[eluser]Sudz[/eluser]
Use PHP's inbuilt function:
Code:
string dirname ( string $path )
Given a string containing the path of a file or directory, this function will return the parent directory's path.
#3

[eluser]LuckyFella73[/eluser]
Have a look at the user guide to see what built in functions there are:
http://ellislab.com/codeigniter/user-gui...elper.html
#4

[eluser]InsiteFX[/eluser]
Also see:

CodeIgniter Users Guide - Directory Helper




Theme © iAndrew 2016 - Forum software by © MyBB