CodeIgniter Forums

Full Version: path doubt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]amipaxs[/eluser]
hello

I'm using this line of code for uploading files, the folder is located on the root
$config['upload_path'] = './uploads/';

simply put , what does the dot before the folder "uploads" mean?

is it the same as '../uploads/' ??

thnxs

El Forum

[eluser]bretticus[/eluser]
[quote author="amipaxs" date="1248945046"]
simply put , what does the dot before the folder "uploads" mean?

is it the same as '../uploads/' ??

thnxs[/quote]

Nope.

./uploads means look for the uploads directory relative to the folder I'm currently in. ../uploads means look for the uploads directory relative to the folder just above the folder I'm currently in (go back one directory and look for uploads.)

El Forum

[eluser]amipaxs[/eluser]
thanks a lot!