

Server root code codeigniter
source link: https://www.codesd.com/item/server-root-code-codeigniter.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Server root code codeigniter
I am trying to upload video in server using Codeigniter, In the localhost i can do it, but when in the server it does not work. Even though do_upload()
function returns true.
When i'm testing the server root, print_r($_SERVER['DOCUMENT_ROOT']);
it returns
/var/www/mjpp/data/www/supps.mydomainname.com
Also the $updata = $this->upload->data();
returns
[file_path] => /var/www/mjpp/data/www/supps.mydomainname.com/public/video
Can you tell me why /var/www/mjpp/data/
is appearing before my main domain name , and is it the cause of any error for uploading video?
Thank you in advance, sorry for my bad english.
/var/www/mjpp/data/www/supps.mydomainname.com
is absolute location of your document root in a system in general. However you do not usually have access to anything above your user dir.
public/video
or /var/www/mjpp/data/www/supps.mydomainname.com/public/video
(as absolute path) is what you pass to Upload
library as upload_path
. This is where the library will try yo upload the files. This folder should exist and be writeable (have 0777 permissions on it for example).
Recommend
-
108
Nowadays lots of PHP frameworks like CodeIgniter, Laravel and Yii are being used for websites development. If you are using PHP for your web application....
-
115
-
51
Bob LennesFollowSeasoned PHP CodeIgniter, jQuery, and SQL ExpertImplementing a "Dynamite" Search...
-
84
-
72
PayPal provides various types of API to integrate payment gateway in the web application. Mostly, the Standard Payment Gateway is used to accept payment online with PayPal.
-
53
CI3 ready admin dashboard Ready admin panel with ACL(user access control),Users , Category , Language and few other common features. VIEW TH...
-
253
README.md ujian-online-ci Aplikasi Ujian Online Menggunakan CodeIgniter Catatan Disarankan upgrade PHP ke versi terbaru (7.3...
-
184
README.md CodeIgniter Rest Server
-
207
README.md
-
53
问题描述 这段时间在用php写一个cms应用消磨时间。框架选型用了CodeIgniter,这个框架整体上还是挺让人中意的——只是稍嫌不够灵活,需要做些额外的工作。 这些额外的工作中让人比较费心的是路径相关的...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK