quitifua6 Posted July 18, 2007 Share Posted July 18, 2007 Hi everyone, I don’t know if I am in the right place to ask this question. But this is my problem I am running in httpdocs and httpsdocs my hosting company is globat.com. I am trying to create a php file so people can create user names and password. I already created the tables in phpmyadmin, made a sing up form call signup and a php file call make.php, my php file looks like this: <? //replace username and password with your mysql name and password $conn = mysql_connect("localhost","username","password"); //select the database $db = mysql_select_db("users_db"); $username = $_POST["username"]; $password = $_POST["password"]; $email = $_POST["email"]; //insert the values $result= MYSQL_QUERY("INSERT INTO users (id, username, password, email)". "VALUES ('NULL', '$username', '$password', '$email')"); echo "Your name and password have been submitted into our database : )"; ?> </body> </html> I tried testing the sign up form and when I click submit this is the error I guet: The directory containing /usr/local/psa/home/vhosts/yorhot.com/httpdocs/make.php cannot be world writable. How Do I Fix This? Quote Link to comment Share on other sites More sharing options...
lewis987 Posted July 18, 2007 Share Posted July 18, 2007 if its saying its not meant to be world wirteable then chmod it to 755 rather than 777 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.