Wednesday, 3 September 2014

PHP upload empty checking

PHP upload file is checking for empty or null 

if (!empty($_FILES['file2']) && ($_FILES['file2']['name'] != ''))
{

}

No comments:

Post a Comment

KISS, DRY, SOLID, YAGNI — A Simple Guide to Some Principles of Software Engineering and Clean Code

1 — KISS (Keep It Simple, Stupid)  Simplicity triumphs over complexity. Direct and clear codes are better for developing, maintaining, and s...