Ошибки создания графичесий файлов

440hz

php.ru
Ошибки создания графичесий файлов

не пойму где косяк?

games(root):/usr/www/new.art-index.org/htdocs/images_test#>php -i | head -4
PHP Version => 4.4.1
System => FreeBSD games.katrina.ru 4.10-STABLE FreeBSD 4.10-STABLE #1: Wed Sep i386
PHP:
error_reporting(E_ALL);

$dst_img = imagecreatetruecolor(100,100);

$im = "/usr/www/new.art-index.org/htdocs/images_test/1.jpeg";
imagejpeg($dst_img, $im);

$im = "2.jpg";
imagejpeg($dst_img, $im);

$im = "/usr/www/new.art-index.org/htdocs/images_test/3.gif";
imagegif($dst_img, $im);

$im = "3.txt";

$fp = fopen($im,'w');
fclose($fp);
выдает:

Warning: imagejpeg(): Unable to access /usr/www/new.art-index.org/htdocs/images_test/1.jpeg in /usr/home/hst_artindex/new.art-index.org/htdocs/images_test/images_test.php on line 8

Warning: imagejpeg(): Invalid filename '/usr/www/new.art-index.org/htdocs/images_test/1.jpeg' in /usr/home/hst_artindex/new.art-index.org/htdocs/images_test/images_test.php on line 8

Warning: imagejpeg(): Unable to access 2.jpg in /usr/home/hst_artindex/new.art-index.org/htdocs/images_test/images_test.php on line 11

Warning: imagejpeg(): Invalid filename '2.jpg' in /usr/home/hst_artindex/new.art-index.org/htdocs/images_test/images_test.php on line 11

Warning: imagegif(): Unable to access /usr/www/new.art-index.org/htdocs/images_test/3.gif in /usr/home/hst_artindex/new.art-index.org/htdocs/images_test/images_test.php on line 14

Warning: imagegif(): Invalid filename '/usr/www/new.art-index.org/htdocs/images_test/3.gif' in /usr/home/hst_artindex/new.art-index.org/htdocs/images_test/images_test.php on line 14

в результате имем:

games(root):/usr/www/new.art-index.org/htdocs/images_test#>lsl
total 6
drwxrwx--- 2 hst_artindex www 512 17 дек 11:52 ./
drwxr-xr-x 16 hst_artindex www 1024 17 дек 11:22 ../
-rw-r--r-- 1 www www 0 17 дек 11:52 3.txt
-rwxr-x--- 1 hst_artindex www 344 17 дек 11:52 images_test.php*

простой файл-то создаётся. 8(

ссылки:
source: http://www.new.art-index.org/images_test/images_test.php
phpinfo(): http://www.new.art-index.org/test.php

От! Блин! safe_mode off сделал - пошло ... а как при safe_mode ON запустить? и файл-то простой создается!
 

SiMM

Новичок
Ну вы блин поиском-то ради приличия пользуйтесь чтоли...
imagejpeg(): Unable to access - тема была за ТРИ дня до твоей.
 
Сверху