[function.move-uploaded-file]: failed to open stream: Permission denied in
Yeah... Cool problem. I have some hours to finish my program, and i cant upload files.
At xampp on my Windows everything works fine, but at Linux with HTTPD service a get this error. The problem is in version of PHP.
Before i had:
$browse2=$_FILES[$objectname]["tmp_name"];
$browse3=$_FILES[$objectname]["name"];
and since i've found that
"In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used
instead of $_FILES."
i use
$browse2=$HTTP_POST_FILES[$objectname]["tmp_name"];
$browse3=$HTTP_POST_FILES[$objectname]["name"];
and everyhing works fine :)
P.S. sory for my english :) ...
p.p.s
here the whole code of saving image:

Yeah... Cool problem. I have some hours to finish my program, and i cant upload files.
At xampp on my Windows everything works fine, but at Linux with HTTPD service a get this error. The problem is in version of PHP.
Before i had:
$browse2=$_FILES[$objectname]["tmp_name"];
$browse3=$_FILES[$objectname]["name"];
and since i've found that
"In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used
instead of $_FILES."
i use
$browse2=$HTTP_POST_FILES[$objectname]["tmp_name"];
$browse3=$HTTP_POST_FILES[$objectname]["name"];
and everyhing works fine :)
P.S. sory for my english :) ...
p.p.s
here the whole code of saving image:

Комментариев нет:
Отправка комментария