PUT Method using PHP4/Apache ...

From: Date: Wed, 18 Apr 2001 17:30:40 +0000
Subject: PUT Method using PHP4/Apache ...
Groups: php.general 
Request: Send a blank email to php-general+get-49240@lists.php.net to get a copy of this message
I've read through: http://php.net/manual/pt_BR/features.file-upload.put-method.php I added: Script PUT /put.php to my apache config file ... everything as far as Netscape Composer is concerned looks right, but it isn't working. I changed my put.php script so that it output all ENV variables to a log file: =========== <? $fp = fopen("/tmp/log.txt","w+"); $temp="PHP_PUT_FILENAME: $PHP_UPLOADED_FILE_NAME\n"; $vars = get_defined_vars(); foreach ($vars as $test => $value) { if (is_array($value)) { foreach ($value as $subtest => $subvalue) { $temp .= "$subtest: $subvalue\n"; } } else { $temp .= "$test: $value\n"; } } fwrite($fp, $temp); $temp="DOCUMENT_ROOT: $DOCUMENT_ROOT\n"; fwrite($fp, $temp); $temp="REQUEST_URI: $REQUEST_URI\n"; fwrite($fp, $temp); fclose($fp); ?> ============ But PHP_PUT_FILENAME isn't being set: ======================= hub# grep PUT update/log.txt PHP_PUT_FILENAME: REQUEST_METHOD: PUT REQUEST_METHOD: PUT temp: PHP_PUT_FILENAME: hub# grep FILE update/log.txt PHP_PUT_FILENAME: SCRIPT_FILENAME: /home/vhosts/farelist.com/www/put.php SCRIPT_FILENAME: /home/vhosts/farelist.com/www/put.php temp: PHP_PUT_FILENAME: hub# grep ^PHP update/log.txt PHP_PUT_FILENAME: PHP_SELF: /put.php/test/Untitled.htm2 PHP_SELF: /put.php/test/Untitled.htm2 ====================== Am I missing something obvious here? Thanks ... Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org

« previous php.general (#49240) next »