I have used a script by Wim vanden Eynde to upload and resize a photo, workes very good. I copied the page to a new domain and now it isn't working anymore. I tried another free php-upload script and it had the same problem, so it isn't the script, it has something to do on my side. the warnings i got were: Warning: fopen(plaatjes/test.jpg): failed to open stream: Permission denied in /home/smsmarkt/domains/smsmarktplaats.nl/public_html/test.php on line 99 Warning: fwrite(): supplied argument is not a valid stream resource in /home/smsmarkt/domains/smsmarktplaats.nl/public_html/test.php on line 100 Er is een fout opgetreden bij het opladen van het bestand. Warning: fclose(): supplied argument is not a valid stream resource in /home/smsmarkt/domains/smsmarktplaats.nl/public_html/test.php on line 109 what am I doing wrong, why is the permission denied?