Jason Wong wrote:

On Monday 08 March 2004 23:35, Martin Hjort Eriksen wrote:


I am running a fullt upgraded Debain "testing" system, and I have a
smaller problem with uploading files.



Does the example in the manual work for you?


If it does, what does the php error log say when you run *your* code?
Post some concise code which illustrates your problem.



Here is some of the code I am using, to acces the uploaded file:

if(!file_exists($_FILES['binFile']['tmp_name'])) {
return "Filen ".$_FILES['binFile']['name']." kan ikke findes p&aring; serveren.<br />
Er fejlen vedvarende, kontakt da venligst systemadministratoren.";
}
$data = addslashes(fread(fopen($_FILES['binFile']['tmp_name'], "r"), filesize($_FILES['binFile']['tmp_name'])));



PHP does not give any warnings or notices in the situation. The $_FILES array is populated with all the necessary information, but the file that is uploaded is not present in the location given by $_FILES['binFile']['tmp_name'] I have also tried to change locations and that did not help.


I have also been in tha manual, and could not find anything there that could help me.

I have previously run Redhat then Slackware...the I changed to Debian, and since then it did not work. I have previoulsy also asked the debian user list, but have not recieved any answer, then decided to ask this list.

/Martin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to