Vraag & Antwoord

Webprogrammeren & scripting

errors in script (heeft altijd gewerkt)

3 antwoorden
  • Warning: Unable to create '../images/user/cheeta/998S-bostrom.jpg': No such file or directory in /home/httpd/vhosts/derbi-club.com/httpdocs/user/editprofile.php on line 105 Warning: Unable to move '/tmp/phpsGoGC6' to '../images/user/cheeta/998S-bostrom.jpg' in /home/httpd/vhosts/derbi-club.com/httpdocs/user/editprofile.php on line 105 Warning: Unable to access ../images/user/cheeta/998S-bostrom.jpg in /home/httpd/vhosts/derbi-club.com/httpdocs/user/editprofile.php on line 106 Warning: chmod failed: No such file or directory in /home/httpd/vhosts/derbi-club.com/httpdocs/user/editprofile.php on line 106 Warning: Unable to access ../images/user/cheeta/998S-bostrom.jpg in /home/httpd/vhosts/derbi-club.com/httpdocs/user/editprofile.php on line 113 Warning: getimagesize: Unable to open '../images/user/cheeta/998S-bostrom.jpg' for reading. in /home/httpd/vhosts/derbi-club.com/httpdocs/user/editprofile.php on line 113 Warning: Unable to access ../images/user/cheeta/998S-bostrom.jpg in /home/httpd/vhosts/derbi-club.com/httpdocs/user/editprofile.php on line 132 Warning: getimagesize: Unable to open '../images/user/cheeta/998S-bostrom.jpg' for reading. in /home/httpd/vhosts/derbi-club.com/httpdocs/user/editprofile.php on line 132 editprofile.php line 90 - 145 [code:1:ed0a3007cb] if(!$row['prf_img1']&& !$_FILES['img1']['name'] && !$row['prf_img2']&& !$_FILES['img2']['name'] && !$row['prf_img3']&& !$_FILES['img3']['name'] && !$row['prf_img4']&& !$_FILES['img4']['name']) { $error=1; $errormsg.="<br>At least one image has to be uploaded"; } else { if($error!=1) { if($_FILES[img1][name]!="") { // remove old file first @unlink("../images/user/$siteusername/$row[prf_img1]"); @unlink("../images/user/$siteusername/thumb_$row[prf_img1]"); // start uploading $filename=$_FILES[img1][name]; $filename=ereg_replace(" ","_",$filename); $img1=$filename; @mkdir("../images/user/$siteusername",0777); move_uploaded_file($_FILES[img1][tmp_name], "../images/user/$siteusername/$filename"); chmod("../images/user/$siteusername/$filename",0777) ; // thumbnailer big image $imagename="../images/user/$siteusername/$filename"; $thumbimagename="../images/user/$siteusername/$filename"; $url="../images/user/$siteusername/$filename"; $image_stats=getimagesize($imagename); $imagewidth=$image_stats[0]; if($imagewidth>800) { $imageheight=$image_stats[1]; $ratio=$imagewidth/800; $newheight=round($imageheight / $ratio); $src_img=imagecreatefromjpeg($imagename); $dst_img=imagecreate(800,$newheight); imagecopyresized($dst_img,$src_img,0,0,0,0,800,$newheight,imagesx($src_img),imagesy($src_img)); imagejpeg($dst_img,"$url",95); chmod("../images/user/$siteusername/$filename",0777) ; } // thumbnailer $imagename="../images/user/$siteusername/$filename"; $thumbimagename="../images/user/$siteusername/thumb_$filename"; $url="../images/user/$siteusername/thumb_$filename"; $image_stats=getimagesize($imagename); $imagewidth=$image_stats[0]; if($imagewidth>240) { $imageheight=$image_stats[1]; $ratio=$imagewidth/240; $newheight=round($imageheight / $ratio); $src_img=imagecreatefromjpeg($imagename); $dst_img=imagecreate(240,$newheight); imagecopyresized($dst_img,$src_img,0,0,0,0,240,$newheight,imagesx($src_img),imagesy($src_img)); imagejpeg($dst_img,"$url",95); chmod("../images/user/$siteusername/thumb_$filename",0777) ; } } else {[/code:1:ed0a3007cb] tot nu toe heeft niemand me kunnen helpen het probleem is dat die geen mappen aanmaakt chmod maakt nix uit zelfs 777 geeft problemen
  • Het probleem zit op je server, je mag gewoon geen files aanmaken in die directory. Neem eens contact op met je hoster zou ik zeggen...
  • het stomme is dat die het soms wel toestaat :-?

Beantwoord deze vraag

Weet jij het antwoord op deze vraag? Registreer of meld je aan met je account

Dit is een gearchiveerde pagina. Antwoorden is niet meer mogelijk.