Welcome Guest, Not a member yet? Register   Sign In
Need help getting application base path
#7

[eluser]dr.fux[/eluser]
Hello everybody

I just came over the same problem, an i realized, that it wasn't really one for me.

Correct me if I'm wrong, but for me it works just consider the base_path is just the working directory of the running CI script, beacause the index.php file is stored in that directory.

So why not consider
Code:
$base_path = "."
?

This would have the conclusion, that a subdirectory of the base_path could be accessed by something like that:

Code:
$images_dir = "images/"; //means http://www.urdomain.com/any_directory/images/


Are there any cases where the working directory of a CI application would change during system execution?

greets,
sniffer


Messages In This Thread
Need help getting application base path - by El Forum - 04-20-2008, 10:09 AM
Need help getting application base path - by El Forum - 04-20-2008, 10:36 AM
Need help getting application base path - by El Forum - 04-20-2008, 12:55 PM
Need help getting application base path - by El Forum - 04-20-2008, 01:07 PM
Need help getting application base path - by El Forum - 04-20-2008, 02:59 PM
Need help getting application base path - by El Forum - 04-23-2008, 12:54 AM
Need help getting application base path - by El Forum - 08-08-2008, 05:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB