I’m writing a class that accepts a product_id and a $_FILES array as it’s constructor. The class saves these variables and uses them to create a new directory named by product_id and attempts to copy the temp file to my specified directory.
For some reason my class isn’t even getting as far as creating a directory (which should happen in the constructor)
Here’s a link to my code: http://pastie.org/955454
This could be a permissions issue. You say it’s a Windows based server? Do you own this machine? Are you using a dedicated server? Are you using a shared server?
The answer to this question really depends on the information given by those. If you own the machine, you can simply go to the directory on your hard disk that you want writeable and open up its permissions to be written to. If it’s dedicated, there’s probably a reasonably easy means of accessing the file structure and changing its permission settings there. If it’s shared, same thing.