.😕 .😕
I´ve write a script to submit a file to server, but the file was not submitted.
I use php is php-4.1.2-7.3.6
<FORM ACTION="<? echo $PHP_SELF ?>" METHOD="get" ENCTYPE="multipart/form-data">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="20000">
File: <input type="file" name="userfile" size="30">
<INPUT TYPE="submit" VALUE="upload">
</FORM>
<?
$uploadfile = $_FILES['userfile']['tmp_name'];
if(file_exists($uploadfile)) {
echo 'file found';
} else {
echo 'file not found';
After this rotine the value echoed in scree is 'file not found'
}
echo "<br>Name File: $userfile <br>"; # print the full path of file: C:\cww6_in002.log
$file=$FILES['userfile']['name'];
echo "File is $file"; #print blank
echo $FILES['userfile']['type']; #print blank
$count_files = count($FILES['userfile']['name']);
echo "Count: $count_files<br>"; #print 0 (zero)
var_dump($FILES); #print array(0) { }
?>
When i echo the submitted file, notting is printed on screed.
I run uebmiau in same server and attach file and send is work fine, so php and apache is ok.
I don´t seen where is my error.
Tanks