Re: Problems with upload
| From: | Martin Hjort Eriksen | Date: | Mon, 08 Mar 2004 16:11:25 +0000 |
| Subject: | Re: Problems with upload | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179764@lists.php.net to get a copy of this message | ||
Jason Wong wrote:
On Monday 08 March 2004 23:35, Martin Hjort Eriksen wrote:if(!file_exists($_FILES['binFile']['tmp_name'])) { return "Filen ".$_FILES['binFile']['name']." kan ikke findes på serveren.<br />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:
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