Thanks🙂
I have used the easy one (chmod) in order to create and write files.
Otherwise I still can´t upload file🙁 I am using the script below:
<?php
set_time_limit(100);
while (list($key,$value)=each($HTTP_POST_FILES['userfile']))
echo "$key: $value<br>";
if (is_uploaded_file($HTTP_POST_FILES['userfile'])){
echo $HTTP_POST_FILES['userfile'];
} else {
echo "arquivo não enviado";
}
copy($HTTP_POST_FILES['userfile']['tmp_name'], "/home/sites/home/web/script/teste.swf");
?>
The problem is: the temp file is not there! I can see the name, the type but neither temp_name nor size.
I have created a upload dir called phptmp (chmod 777) and update php.ini but I haven´t been successful?
So... There something missing?
ps.: URL - http://www.neoprint.com.br/script/upload.htm
Dekar