Re: PUT Method using PHP4/Apache ...

From: Date: Thu, 19 Apr 2001 01:56:54 +0000
Subject: Re: PUT Method using PHP4/Apache ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49298@lists.php.net to get a copy of this message
Is there maybe somethign in php.ini or in the php compile that has to be enabled, that I'm not find/cluing into? On Wed, 18 Apr 2001, The Hermit Hacker wrote: > > 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org

« previous php.general (#49298) next »