Category «Php Working with Files»

Php File Handling

First of all, an important aspect to keep in mind when working with files, is that Windows and Mac OS X filenames are not case-sensitive, but Linux and Unix ones are. So is a good practice to assume that the system is casesensitive and use a convention such as all filenames are lowercase. How to …

Limiting upload file size in PHP

Limiting upload file size We can configure upload max file size in php.ini file, but this is a global maximum for all of PHP. If we want to configure max file size in a particular case, we can do that by adding an attribute to HTML form for MAX_FILE_SIZE. PHP will automatically detect that value …