Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Uploading a file to an absolute path outside of the document root? How is this done?
Old 01-02-2008, 09:12 PM Uploading a file to an absolute path outside of the document root? How is this done?
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
How do I upload a file to a folder outside the document root without moving files and have a maximum size of 700 Mb and the upload in this location outside the document root is /home/forbushj/uploaded/ when the document root is /home/forbushj/public_html/?
Those are the two absolute paths in bold.
HTML Code:
<form action="http://www.technologyforever.com/somescript.php" method="post" enctype="multipart/form-data" name="form1">
  <p>Upload Form</p>
  <p>
    <label>Upload
    <input type="file" name="file" id="file">
    </label>
</p>
  <p>
    <input type="submit" name="button" id="button" value="Submit">
  </p>
</form>
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
 
Register now for full access!
Old 01-03-2008, 03:03 PM Re: Uploading a file to an absolute path outside of the document root? How is this do
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
To upload files of up to 700mb you would need to edit your php settings (See php.ini file) if you want to do it via the browser.

I think most file uploads (via browser) are stuck going via the tmp folder, but you can move them using the move_uploaded_file() function ( http://uk.php.net/manual/en/function...oaded-file.php ).
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE

Last edited by rogem002; 01-03-2008 at 03:07 PM..
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Reply     « Reply to Uploading a file to an absolute path outside of the document root? How is this done?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41938 seconds with 12 queries