6

PHP create files with wrong permission

view full story
linux-howto

http://serverfault.com – I have a php files, name image_creat.php $res = mysql_query("select * from images where key!='en' Order By id DESC LIMIT 0,10"); while ($rows = mysql_fetch_array($result)) { $imageurl = dirname(__FILE__) . '/../images/'; $width = $row['width']; $height = $row['height']; $source_image = @imagecreatefromjpeg($row['image']); $desired_width = '800'; $desired_height = floor($height*($desired_width/$width)); $virtual_image = @imagecreatetruecolor($desired_width,$desired_height); @imagecopyresized($virtual_image,$source_image,0,0,0,0,$desired_width,$desired_height,$width,$height); @imagejpeg($virt (HowTos)