Logo 
Search:

PHP Forum

Ask Question   UnAnswered
Home » Forum » PHP       RSS Feeds

upload file

  Asked By: Sean    Date: Apr 27    Category: PHP    Views: 697
  

I'm learning php at my home and trying to upload a simple .xls
and .jpeg file. But I din't get any thing on the uploading page where I
wrote simply one line code
<?php
echo $_FILE['file'][name'];
?>

But as I told It din't showing anything on my next page.
I'd checked my php.ini and there I din't make any changes
It's file_uploads = On and
upload_max_filesize = 2M
that is default.
Now,how would I solve my problem.
Can anyone help me out,please.

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Anthony Smith     Answered On: Apr 27

I don't understand... was that line  the ONLY thing  you had on the
page???

that line alone will not do any uploading  for you!

 
Answer #2    Answered By: Edna West     Answered On: Apr 27

You problably are not dealing well with the temporary file!

 
Answer #3    Answered By: Guilherme Silva     Answered On: Apr 27

download a fresh code from
http://www.phplabsindia.com/info/fileupload.php

it is set up for 1 mb file. change size from 1024 to 2048 to upload
2mb file. be sure that destination folder permissions set to 777.

 
Didn't find what you were looking for? Find more on upload file Or get search suggestion and latest updates.




Tagged: