You are here: Re: [PHP] image_type « PHP « IT news, forums, messages
Re: [PHP] image_type

Posted by Josip Dzolonga on 10/04/75 11:12

William Stokes wrote:
> I was under impression that php automatically gives values to
image_type and
> image_name if one tries to upload image from a web form if the name
of the
> uploaded image field is image.

You mean it automatically gives values to variables $image_type and
$image_name ? No, it doesn't. You can get the type (MIME) and the name
of the file with $_FILES['filename']['type'] for the MIME-type and
$_FILES['filename']['name'] for the filename. I encourage you to take a
better look here : http://www.php.net/features.file-upload and you can
also print_r/var_dump($_FILES);

Hope that helps,

--
Josip Dzolonga
http://josip.dotgeek.org

jdzolonga[at]gmail.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация