![]() |
How do you handle image upload folder/path? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: How do you handle image upload folder/path? (/showthread.php?tid=52897) |
How do you handle image upload folder/path? - El Forum - 07-01-2012 [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? How do you handle image upload folder/path? - El Forum - 07-01-2012 [eluser]retypejonas[/eluser] Hello, try Code: <?php echo FCPATH; ?> How do you handle image upload folder/path? - El Forum - 07-02-2012 [eluser]Dinko[/eluser] Wow. thank you. |