Jump to content


Photo

How to create folder using php


  • Please log in to reply
3 replies to this topic

#1 smartguyin

smartguyin
  • Members
  • PipPipPip
  • Advanced Member
  • 61 posts

Posted 18 July 2006 - 05:03 PM

I have tried mkdir() but when it gives me error "Warning: mkdir(www): Permission denied in "

I have set my public_html folder to chmod 777 still then this error occurs.....

How can i create folder without any errors

Please Reply !
One of my php project >> http://www.mumbaipropertysite.com

#2 willfitch

willfitch
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts
  • LocationNew Hope, PA

Posted 18 July 2006 - 05:13 PM

mkdir() does this.  Make sure the owner of the file (i.e. smartguy) isn't trying to create a folder in a directory owned by say, root.
Zend Certified Engineer (ZEND001989)
www.willfitch.com

#3 smartguyin

smartguyin
  • Members
  • PipPipPip
  • Advanced Member
  • 61 posts

Posted 18 July 2006 - 05:31 PM

I am using this code to create folder

mkdir ($key, 777);

In this variable $key is coming from the submit form and then using the info from variable $key create the folder by that name.

Am i worng in this.........  tell me
One of my php project >> http://www.mumbaipropertysite.com

#4 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 18 July 2006 - 05:34 PM

post you full code ok and the form ok
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users