![]() |
| ||
| file upload code.....need attention plz rectify the following code of file upload file_up.php <html>___________________________________________________________ upload.php <?php when i try to upload any .jpg file under 350kb the last second error occur....I need ur suggestion that to run these code perfectly........ |
| ||
| Re: file upload code.....need attention Well, you have three conditions there that could be causing it to fall through if (($ext == "jpg") && ($_FILES["uploaded_file"]["type"] == "image/jpeg") && ($_FILES["uploaded_file"]["size"] < 350000)) { Have you checked them all individually? This is just part of basic debugging. Use echo, var_dump(), or assert() statments to check these expressions individually.Example of using assert() <?php |
| All times are GMT -4. The time now is 1:04 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC