So I'm trying to move some of my scripts onto a remote server and something that worked great locally is now giving me trouble. The output I'm getting looks like
Warning: move_uploaded_file(test.png): failed to open stream: Permission denied in /home/user/www/borderb.php on line 43
Warning: move_uploaded_file(): Unable to move '/tmp/phpgbKX4k' to 'test.png' in /home/user/www/borderb.php on line 43
file not moved
So this is bad. I searched for permissions on the php site and came up with something called umask() but I have no idea what a mask is or anything about that. Where are some places to start if I want to debug this problem. Thanks.
If you want to take a look at the output I believe it's at
http://hwttdz.glwb.info/borderb.php
you have to give it a png file where it asks.
There's a png file available here http://hwttdz.glwb.info/img/temp1.png .
$destfile="test.png";
if(move_uploaded_file($_FILES['myfile']['tmp_name'],$destfile))
{
eline("file moved");
}
else
{
eline("file not moved");
}