FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Check CHMOD - URGENT! - need to release script soon!





DanielXP
How can i make the script to check the CHMOD

check config.php if 777 hyperlink to install.php?action=step1

else

You must CHMOD config to 777!

if you could do this please, thanks.
simplyw00x
http://uk.php.net/fileperms

Code:
if(substr(sprintf('%o', fileperms('/etc/passwd')), -4) == "0777"){
echo "Permissions OK";
}else{
echo "Permission error";
}
Nathan69
that helped me thanks who ever posted that!
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.