Hallo,
Ik heb wat probleempjes met mijn uploadscript.
Hij geeft de volgende errors:
De source is:
Niet zeuren dat ie onbeveiligd is, ik weet het.
Ik heb de file naar 777 gezet en werkt nogsteeds niet.
Ik heb wat probleempjes met mijn uploadscript.
Hij geeft de volgende errors:
Warning: move_uploaded_file(/public_htmlIMG023.php%00.jpg): failed to open stream: Permission denied in ####### on line 7
Warning: move_uploaded_file(): Unable to move /tmp/phpTLwDkh to /public_htmlIMG023.php%00.jpg in ####### on line 7
Notice: Undefined index: userfile in ######## on line 4 De source is:
<html><body><form method="POST" enctype="multipart/form-data"><input type="file" name="userfile"><input type="submit" name="submit" value="Upload">
[COLOR= #0000BB]<?php
$uploaddir[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"/public_html"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$uploadfile[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$uploaddir[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/basename"]basename[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]userfile[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]userfile[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/move_uploaded_file"]move_uploaded_file[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]userfile[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]tmp_name[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$uploadfile[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/basename"]basename[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]userfile[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]) .[/COLOR][COLOR= #DD0000]" done"[/COLOR][COLOR= #007700];
}
}[/COLOR]
?>
</form></body></html> Niet zeuren dat ie onbeveiligd is, ik weet het.
Ik heb de file naar 777 gezet en werkt nogsteeds niet.

neem aan dat je het niet zomaar klakkeloos ergens bovenaan je code dropt?