Jump to content

uploading files to another folder using PHP script - need help


cbassett03

Recommended Posts

OK, if I wanted to create a script called fileupload.php (that is called using a FORM in an HTML file), that is located at the following location (example):

 

www.mysite.com/admin/fileupload.php

 

and let's say that I wanted to upload to a folder located at "www.mysite.com/content/photos/trips"

 

How can I do this?  I would image that I would need to change the permissions of the "trips" folder to do this.  Can I upload to this location even though the PHP script is not in the same folder as where the file is being uploaded to?  Also, can you change directory permissions via a PHP script (if so, how)?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.