mattsutton Posted May 15, 2006 Share Posted May 15, 2006 Hi, im new hereI am trying to make a system where a users details are added to a mysql database via a form, then at the same time as this is happening a new folder is made for their username on the server.Everything seems like it should work fine but im getting an error message when creating the folder.im using mkdir()and the code is<? mkdir(".../.../accounts/$username")?>When i hit submit to process all the data i get the error message... "Warning: mkdir(http://www.redspidercreative.co.uk/clients/liftingtackle/accounts/redspider): No such file or directory"if i use the username "redspider" folder permissions are set to 777i cant think what else im doing wrong.Any help would be much appreciatedthanks!Matt Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted May 15, 2006 Share Posted May 15, 2006 mkdir usually gives you system root, not http:// that is weird.Insert this above your mkdir in the code and see what it tells you (change the "..." back to what it's supposed to be first, of course)[code]echo realpath(".../.../accounts");[/code]If there is a path error, you'll likely get "directory doesn't exist" or some such. If not, just verify that each of the directories in your path actually does exist. 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.