JPG minimaal 800x60 pixels max. 2Mb
Upload your own photo upload_inc.php class upload { var $directory_name; var $max_filesize; var $error; var $user_tmp_name; var $user_file_name; var $user_file_size; var $user_file_type; var $user_full_name; function set_directory($dir_name =".") { $this->directory_name = $dir_name; } function set_max_size($max_file = 2000000) { $this->max_filesize = $max_file;
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss $_files error the workings and policies of this site About Us Learn more undefined index: image in about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow
Php $_files Empty
Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each http://stackoverflow.com/questions/6098261/undefined-index-file other. Join them; it only takes a minute: Sign up Undefined Index while uploading file up vote 3 down vote favorite 1 This is my error: Notice: Undefined index: file in C:\xampp\htdocs\Project\Template1\users\index.php on line 21 Notice: Undefined index: file in C:\xampp\htdocs\Project\Template1\users\index.php on line 23 please uploaded How to get rid of it? Html Code:
Php Code: php share|improve this question edited Dec 8 '15 at 10:06 swidmann 2,3661725 asked Sep 26 '13 at 12:15 Ashish Singh 32126 1 That can't be the whole file. The code only has 15 lines, and the error is on line 21 and 23. –Vlad Bondarenko Sep 26 '13 at 12:37 add a comment| 6 Answers 6 active oldest votes up vote 2 down vote accepted Try this share|improve this answer edited Jan 4 at 6:45 answered Sep 26 '13 at 12:17 Sherin Jose 1,7481925 Thanks a lot, it worked. &nda
and Objects Namespaces Errors Exceptions Generators References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Context options and parameters Supported Protocols and Wrappers Security Introduction General considerations Installed as CGI binary http://php.net/manual/en/reserved.variables.files.php Installed as an Apache module Session Security Filesystem Security Database Security Error Reporting Using Register Globals User Submitted Data Magic Quotes Hiding PHP Keeping Current Features HTTP authentication with PHP Cookies http://askubuntu.com/questions/81471/500-error-on-index-php-file-all-other-php-files-are-working-well Sessions Dealing with XForms Handling file uploads Using remote files Connection handling Persistent Database Connections Safe Mode Command line usage Garbage Collection DTrace Dynamic Tracing Function Reference Affecting PHP's Behaviour Audio undefined index Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Credit Card Processing Cryptography Extensions Database Extensions Date and Time Related Extensions File System Related Extensions Human Language and Character Encoding Support Image Processing and Generation Mail Related Extensions Mathematical Extensions Non-Text MIME Output Process Control Extensions Other Basic Extensions Other Services Search Engine Extensions Server Specific Extensions Session undefined index file Extensions Text Processing Variable and Type Related Extensions Web Services Windows Only Extensions XML Manipulation GUI Extensions Keyboard Shortcuts? This help j Next menu item k Previous menu item g p Previous man page g n Next man page G Scroll to bottom g g Scroll to top g h Goto homepage g s Goto search(current page) / Focus search box $_REQUEST » « $_POST PHP Manual Language Reference Predefined Variables Change language: English Brazilian Portuguese Chinese (Simplified) French German Japanese Korean Romanian Russian Spanish Turkish Other Edit Report a Bug $_FILES $HTTP_POST_FILES [deprecated] (PHP 4 >= 4.1.0, PHP 5, PHP 7)$_FILES -- $HTTP_POST_FILES [deprecated] — HTTP File Upload variables Description An associative array of items uploaded to the current script via the HTTP POST method. The structure of this array is outlined in the POST method uploads section. $HTTP_POST_FILES contains the same initial information, but is not a superglobal. (Note that $HTTP_POST_FILES and $_FILES are different variables and that PHP handles them as such) Changelog Version Description 4.1.0 Introduced $_FILES that deprecated $HTTP_POST_FILES. Notes Note: This is a 'superglobal', or automatic glo
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top 500 Error on index.php file. All other php files are working well [closed] up vote 0 down vote favorite I've successfully installed LAMP and created some virtual hosts. Everything is working fine except index.php files. When I try access them, browser returns 500 Error, regardless of their content. All other PHP files are working fine, index.html files can be opened without any errors. Please, help me to resolve this problem. I guess something wrong with server configuration, but I didn't find what exactly. lamp php share|improve this question edited Nov 21 '11 at 23:14 Jorge Castro 24.6k91387589 asked Nov 21 '11 at 22:50 Stas 213 closed as too localized by Jorge Castro, James♦ Feb 25 '12 at 13:41 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. Please add the fullpath to where your index.php file is located and also the output of the shell command ls -l /fullpath/to/index.php . Press ctrl+alt+t to open a terminal. Also add the content of the index.php file you are trying. –lpanebr Nov 21 '11 at 22:55 Try open a shell and type php foo.php and php -l foo.php. You may also check your