Welcome Guest, Not a member yet? Register   Sign In
how to explore current path in codeigniter
#1

[eluser]Unknown[/eluser]
Hi I'm new in codeigniter.
so i want explode current full path in codeigniter.i tried explode function but this function dont give filenames in particular directory
#2

[eluser]JoostV[/eluser]
This should work on Linux, Mac & Windows
Code:
$path_array = explode(DIRECTORY_SEPARATOR, __FILE__);
#3

[eluser]InsiteFX[/eluser]
CodeIgniter Users Guide - Directory Helper

Also why did you post this in 2 different forum topics?
#4

[eluser]JoostV[/eluser]
Haha, misread. I thought @Sweety wrote explode instead of explore Wink




Theme © iAndrew 2016 - Forum software by © MyBB