Hi all,
I am trying to PUT a file to my webserver (Apache 1.3.12 - RH6.2 - PHP4.0.4) using the w3c libwww library, i.e. the w3c comline tool (http://www.w3c.org/ComLine). I installed it, and ran the following command :
I wrote a small PHP-script under the serverroot (/www/htdocs/put.php) that looks like (the Debug() object just logs debug messages to a file) :
<?php
require "debug.cls";
$log = new Debug();
$log->p("PHP_PUT_FILENAME".$PHP_PUT_FILENAME);
$log->p("PHP_UPLOADED_FILE_NAME".$PHP_UPLOADED_FILE_NAME);
?>
The logfile says (these variables should be defined as described in the PHP manual) :
PHP_PUT_FILENAME =
PHP_UPLOADED_FILE_NAME =
So, where on earth can I get the temporary file name for my putted file ??? Has anyone had this problem before ???
Or has anyone of you another way of putting/posting a file onto a webserver via a PHP file ? I mean putting/posting via a shell-script or so... (that's why I used w3c)
Thx for any help and/or feedback !