chmod warning

This is a discussion on "chmod warning" within the PHP Forum section. This forum, and the thread "chmod warning are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 9th, 2006, 16:28
Reputable Member
Join Date: Nov 2005
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
chmod warning

Im trying to set a directories permissions to 777 at runtime to upload a picture and then set it back to 755 once the upload script is done but im getting warning

Warning: chmod(): Operation not permitted in directory_path on line 3

The code to chage the permissions is

PHP: Select all

<?php 
$uploaddirectory 
"directory_path";
chmod($uploaddirectory777);
?>
Does this mean my hosts won't allow me to change the permissions, is there a way around this (im not really wanting to leave the directory at 777 permanently.

Also what are the security risks of this (being on a shared server), is there anything I can do to minimise the risks?
Reply With Quote

Reply

Tags
chmod, warning

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
chmod 750 crawlable? Blake121 Search Engine Optimization (SEO) 3 Jan 9th, 2008 16:57
How do I chmod a file? gribble PHP Forum 4 Jun 29th, 2006 22:41
ADO Security Warning?? bwalker ASP.NET Forum 2 Nov 14th, 2005 18:42


All times are GMT. The time now is 05:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43