.htaccess file is a magic file. You can change the way your website works by using it. I have been reading a lot about .htaccess files. Perticularly .htaccess is very useful in shared web hosting environment where the users have no direct access to their servers or they want to implement some restrictions/security to their [...]
If you have to create a date object of future or past, you can do it by using the second parameter of PHP date function. This is extremely useful when doing BETWEEN comparison in MySQL. You can build the date and bind it to query.
With this PHP script you can find size and type (extension) of required file.
By default there is a restriction of 2 Megabytes file upload at a time for PHP. If we have to upload media files or other large files then we will have to change some settings in php.ini. Locate the php.ini file in the folder your upload script resides in. If none exists, install a new [...]
String to Upper Case – strtoupper The strtoupper function takes one argument, the string you want converted to upper case and returns the converted string. Only letters of the alphabet are changed, numbers will remain the same.
Use this example to show some hidden message at page using PHP. You can use two pages for that or single page if register_globals are on in your php.ini settings.


