![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2004
Posts: 32
Rep Power: 0
![]() |
CHMOD in PHP is simple right?
CHMOD($filename, $permissions); but then I can't figure out why this doesn't work <?
if(!chmod("test.txt", 0777))
{
echo "dood no good";
}
else
{
echo "yay";
};
?>
__________________
<CENTER><span style='font-size:17pt;line-height:100%'>My Homepage</span></CENTER> |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
<?
if(!chmod("test.txt", 0777))
{
echo "dood no good";
}
else
{
echo "yay";
}; // <---------- Whats that?
?>Fixed -\/ <?php
if(!chmod("test.txt", 0777)) {
echo "dood no good";
} else {
echo "yay";
}
?>
__________________
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() |
Don't think that you can, only mods can, which one do you want deleted?
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#4 |
|
Programming Guru
![]() |
The one in which i ask how to delete a post, and this one..
__________________
|
|
|
|
|
|
#5 |
|
Programmer
Join Date: Oct 2004
Posts: 32
Rep Power: 0
![]() |
still no beans, its still telling me it doesnt work. I'm really stumped
__________________
<CENTER><span style='font-size:17pt;line-height:100%'>My Homepage</span></CENTER> |
|
|
|
|
|
#6 |
|
Newbie
|
What is the error message? What OS and PHP version are you running?
|
|
|
|
|
|
#7 |
|
Expert Programmer
|
Not working as in not executing, or not working as in the file just does not change permission?
If it is the later one, make sure that your script is executing as a user who has permission to change the file permissions.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|