jestem bardzo początkującym więc litości z atakmi:)
mam mały problem ze ścieżką
mam stronę www opartą o CodeIgniter, rutering wskazuje na katolog CI jako domowy
ROOT
|
|-CodeIgniter
|.....|
|.....|-ci
|........|
|........|-system
|..............|aplications
|......................|views
|-upload
Umieściłem skrypt do wgrywania plików niestety nie moge przekierować go by pliki trafiały do upload
Katalogiem domowym jest ustawiony katalog CI i jeśli w nim jest folder upload wszystko dział poprawnie
Jak należy poprawić kod bym mógł dostać się do upload
################## configurations #################### # header & title of this file $title = "BIGFOTO Upload Manager"; # individual file size limit - in bytes (102400 bytes = 100KB) $file_size_ind = "102400000"; # the upload store directory (chmod 777) $dir_store= "../../../../upload"; # the images directory $dir_img= "img"; # the style-sheet file to use (located in the "img" directory, excluding .css) $style = "style-def"; # the file type extensions allowed to be uploaded $file_ext_allow = array("gif","jpg","jpeg","png","txt","nfo","doc","docx","odt","xml","swx","ods","xls","xlt","rtf","zip","rar","gz","psd","tif","bmp","pdf","cdr"); # option to display the file list # to enable/disable, enter '1' to ENABLE or '0' to DISABLE (without quotes) $file_list_allow = 0;