Question: |
Hello! I am interested in setting upload_tmp_dir in php. On your host if you look at the value of the variable ini_get(`upload_tmp_dir`) it you do not set. Also it cannot be set to itself (typically tmp is not created). Because of this I can`t use the load script files to the server from the browser. How do I correctly change the value of this variable? and is it possible at all? |
Answer: |
Hello. The value is in the script itself, you specify a specific folder within your website where will be loaded. are all modern cms. |
Question: |
alas, the files are always first uploaded to a temporary directory upload_tmp_dir and then moved to the desired directory using move_uploaded_file(); in At least maxsite cms is now the case. Is it possible still as that to change the value of this variable or not? |
Answer: |
What value do you want? |
Question: |
alas, still no. As I understand it generally is not specified |
Question: |
Oh, sorry, I misread that. Satisfied with the reference to the tmp folder. /tmp/ |
Answer: |
no, only to a folder within your account, report what folder in your account, you can download |
Answer: |
please Check now.
|
Question: |
then in the /public_html/uploads |
Answer: |
the folder is specified |
Question: |
Now great, upload_tmp_dir is set to /home/sv43/tmp, the files load successfully. But due to the presence of php.ini in the root, on the website there is A PHP Error was encounteredSeverity: Warning and error mktime() [function.mktime]: It is not safe to rely on the system`s timezone settings. the problem with time zones |
Answer: |
please Check now.
|
Question: |
Okay, thank you. I`m still in php.ini made a date.timezone = Europe/Moscow, and everything is back to normal with time |
Answer: |
OK
|