Discuss upload_tmp_dir = /tmp in the PHP Development forum on Dev Shed. upload_tmp_dir = /tmp PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.
<?php
print "Information about your file: <pre>";
print_r ($_FILES['userfile']);
print "</pre>";
?>
after submitting it shows:
Code:
Information about your file:
Array
(
[name] => Jesus.jpg
[type] => image/pjpeg
[tmp_name] => /var/tmp/phpgYkScI
[error] => 0
[size] => 4649
)
and in my php.ini the setup is as follows:
Code:
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
and i went to either /tmp folder or /var/tmp/ and find nothing,
CHMOD for both is 711
where could be the files loaded?
Thanks
__________________
yours,
George
Last edited by georgeatef : December 10th, 2003 at 10:02 AM.
Posts: 385
Time spent in forums: 3 Days 3 h 57 m 49 sec
Reputation Power: 9
Thanks for the reply,
I've read that link before i start, but i want to make sure that what i did is right? why it is removed from the temp directory, and why the variable $_FILE[tmp_name] => /var/tmp/phpgYkScI points to another path?