Jump to content


Photo

PHP and Servers


  • Please log in to reply
No replies to this topic

#1 dsartain

dsartain
  • Members
  • PipPipPip
  • Advanced Member
  • 68 posts

Posted 20 March 2006 - 05:36 AM

Ok, I'm making a page where someone can upload images to their website...user types in the path
I.E. Images/folder1/newfolder and the image is uploaded...but it returns an error if the folder isn't there...I want it to create the folder instead...I would use FTP for this, but I'm going to be building the pic gallery with PHP and this upload page will also send info to a DB for the gallery page to pull from...

if(is_uploaded_file($this->userfile)) 
    { 
           move_uploaded_file($this->userfile,$uploaddir2.$this->userfile_name); 
        
    }

is what I'm using to move the file once the file is uploaded...any ideas?? Thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users