I
I
iSize1ce2015-10-10 16:12:32
PHP
iSize1ce, 2015-10-10 16:12:32

Why doesn't the file move?

NGc54
The condition is not met. What to write instead of "img/"? Tried already:
"folder/img/" (the script is in "site.ru/folder/admin/')
"/folder/img/"
"/folder/img"
"folder/img/"
"img/"
"/img ", etc. - nothing comes out.
I tried like this:

$uploadfile = $_SERVER["DOCUMENT_ROOT"].'/acobar18/img/'.$random.'-'.basename($_FILES['image']['name']);

It still doesn't come out. Set the rights to the script: 666

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ivanq, 2015-10-10
@Ivanq

$_SERVER["DOCUMENT_ROOT"]."/folder/img/"

O
Orzubek Rakhimov, 2015-10-10
@orzubek

Install chmod 666

A
Alexander Zubarev, 2015-10-10
@zualex

Most likely not the correct path is registered. Try to extract move_uploaded_file from the condition and see what the error is.

K
Kukushkin Ivan, 2015-10-10
@deleted-webter

htaxes maybe?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question