January 24th, 2010, 01:11 AM
Godaddy not working..help?
For anyone that has used godaddy hosting before I need your help. I am trying to run this simple script,
. I keep coming up with the error,
<?php mkdir("/path/", 0700); ?>
...Does anyone know why this isnt working or what I have to allow to make this not restricted???
Warning: mkdir() [function.mkdir]: Permission denied in D:\Hosting\4984734\html\mkdirect.php on line 2
January 24th, 2010, 02:22 AM
does mkdirect.php have write permission (chmod 777)?
Also if you are using php you should really avoid godaddy hosting at all costs. You will run into countless issues with mail(), permissions, and functions.
January 24th, 2010, 02:39 AM
I dont know. I just tryed using 0777 instead of 0700 and both came up with
Do you know how I would allow it?
Warning: mkdir() [function.mkdir]: Permission denied in D:\Hosting\4984734\html\mkdirect.php on line 1
Also there is nothing I can do about the server type because it is already bought and everything...
January 24th, 2010, 02:42 AM
Your script file mkdirect.php, it needs to have write permission to create the folder.
January 24th, 2010, 03:06 AM
Thats the thing though, all folders have read and write permission...its so confusing
January 24th, 2010, 03:42 AM
like this right? It was already done and yet there is still a problem
January 24th, 2010, 04:07 AM
Looks like only the folder has r/w? Does the php file you are using have write permission?
January 24th, 2010, 04:09 AM
Actually from that menus it doesn't even look like you can set file permissions in it. Try going into FTP and right clicking the php file and settings it's permissions.
January 24th, 2010, 04:50 AM
The only thing I can do in ftp is manage users. Also, I use windows explorer to ftp to the server...Could you tell me what exactly I need to do?
January 24th, 2010, 12:30 PM
Right click the php file and should be able to edit it's permissions
January 24th, 2010, 12:52 PM
wow. I though godaddy was great but really??
"This server does not support changing file permissions."
January 24th, 2010, 01:19 PM
Might try http://help.godaddy.com/article/2323
January 9th, 2011, 03:40 AM
One more thing
Your site may not have permissions (mine does on godaddy) if you set up your account to use a Windows host. Only *nix bases support this type of permission system. Windows has one, but it's different and usually doesn't effect read/write of programs already installed.
1. Try using mkdir in recursive mode.
2. Contact GoDaddy support and ask if you have a Windows or Linux shared hosting account. If it's Windows, ask to change to Linux.*
*About: Linux supports PHP and Apache better, and is cheaper. It will run pretty much everything needed for a website. It actually powers most the web, so if you have a Windows host don't worry about changing, you're better off with Linux on this one.
Use the reference of the script to locate where you want to go.
Let's say your script is in /path/to/script.php
You want to make a directory/file /path/to/newfile
to do this in PHP you would type
-The true at the end of the file will tell mkdir to be recursive, or to refer to itself as the starting point. The two dots mean to go up a directory level a single dot means to stay in the folder the script is located in.
I know this works because I have my site, pessetto.com, hosted with goDaddy too.