![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 12 Pomógł: 0 Dołączył: 7.05.2008 Ostrzeżenie: (0%) ![]() ![]() |
Prosty problem: (co z tym zrobić?)
Cytat Warning: imagejpeg() [function.imagejpeg]: Unable to open './zdj_big/0000162.jpg' for writing in xxxx/xml2.php on line 133 Fragment kodu pliku xml2.php odpowiedzialny za to:Kod chmod('./zdj_big/', 0777); gdzie $value to pierwotna nazwa pliku, a liczpa($q_id); generuje string przedstawiający pierwszy z brzegu wolny numer ID zdjęcia ze stałą ilością zer.list($width, $height) = getimagesize("xxxx/".$value); if ($width>$height){ $new_width=400; $new_height = round($height * $new_width/$width); } else { $new_height=400; $new_width = round($width * $new_height/$height); } if ($width>$new_width and $height>$new_height) { $image_p = imagecreatetruecolor($new_width, $new_height); $image = imagecreatefromjpeg("xxxx/".$value); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height); imagejpeg($image_p, './zdj_big/'.liczpa($q_id).'.jpg', 100); } else { $image = imagecreatefromjpeg("xxxx/".$value); imagejpeg($image, './zdj_big/'.liczpa($q_id).'.jpg', 100); } PHP 4.4.7 GD Version 2.0 or higher JPG Support enabled |
|
|
![]() ![]() |
![]() |
Aktualny czas: 27.09.2025 - 13:25 |