Welcome Guest, Not a member yet? Register   Sign In
How do you handle image upload folder/path?
#1

[eluser]Dinko[/eluser]
So, i'm lil bit stucked with "how to do it".

My image folder is located in codeigniter root folder:

Quote:... wamp/www/codeigniter_instance/images

I'm using SERVER[DOCUMENT_ROOT] to get path to images but problem is that i need to append "codeigniter_instance" becuase SERVER[DOCUMENT_ROOT] is just returning "... wamp/www/".

So if i move all files inside "codeigniter_instance" (i don't want that my page goes www.mypage.com/codeigniter_instance/) to another server, path to image folder will be broken? Right?

How do you do this?
#2

[eluser]retypejonas[/eluser]
Hello, try
Code:
<?php echo FCPATH; ?>
#3

[eluser]Dinko[/eluser]
Wow. thank you.




Theme © iAndrew 2016 - Forum software by © MyBB