Reply to chmod help

Your name:

Reply:


Posted by MS on 07/13/05 02:49

Why can't I chmod?

I have created a user interface which allows image uploads. renames the
image and saves it to a dir.

At which point I run a chmod

if (chmod($piclocation, 0444)){
....}

the chmod must return true as what is within the if statement completes.
but when i check the file it is set at chmod 644

-----

I then want to read the image, resize it, and save it back with the same
name.
but when i try to chmod this image to 777 for instance i get an error
message
Warning: chmod(): Operation not permitted in
/home/xxxx/public_html/admin/php-bin/actions/reduce_image.php on line 45

safe_mode is off

I can not seem to get any chmod working within php, only via FTP.

--
----------------------------------------------------------------------------
http://www.clickonlingerie.com?SIG - Exotic Erotic Lingerie
----------------------------------------------------------------------------

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация