Disable error reporting | PHP

This function is sued for setting the error reporting level at runtime. To completely disable error reporting, the value is ‘0’ zero. syntex:

example:

Other kind of error reporting levels

Using combinations of error levels Example:

  Link to this post!

ini_set() | Memory Limit | Increase memory limit for PHP applications

Basically what ini_set() does is, sets the value of the given configuration option. The configuration option will keep this new value during the script’s execution, and will be restored at the script’s ending. It takes 2 parameters, 1 is variable name, and other is value. I have used the ini_set() function mostly to set the […]

jQuery Quick News Fader

jQuery content fade (rotate/slide) plugin is a multipurpose jQuery tool for displaying content. This is a great tool to present news, events, announces, press releases, and other content to your website page. Features Light-weight, fast and simple. Auto/Manual rotate. Customizable animation speed. Control key for previouse/next/pause/play. Use your own CSS. Multiple item in a single […]

Escaping ‘%’ in MySQL LIKE statement when sprintf

I wanted to run a SQL query against MySQL database server which contains search string and need to be formated using sprintf. The problem arise when format. It is because of the sign “%” am using to advance my search term. The query was…

Here where the error fires. Thanks God, I found the […]