Breaking News
Home / Web (page 2)


What are the various alias used in Yii 2.0 ?

The following are the various alias used by the Yii Framework. These alias simply programming as the full path or value represented by the alias does not need to be typed again and again along with that if needed these alias can be changed in a single place. @yii – …

Read More »

Howto disable MAMP PHP script cache?


MAMP 2.2 uses OPCache to cache PHP scripts. So if you make a change to your PHP script, and execute the script in the browser, you will not see your change right away. Looking at the OPCache configuration in MAMP (as defined in php.ini), the cache timeout interval is set …

Read More »

How to create 2D Canvas in HTML5 using Javascript?

Snippet The following snippet shows how to create a div called as canvas (can be any name) and then in javascript we get the handle to canvas by calling document.getElementById method. Finally we get the 2D context from the same. Once the context is obtained, using javascript commands we can …

Read More »

How to allow PHP to upload larger file size (audio etc.)?

The following parameters can to be changed in php.ini in order to allow upload of larger files. ini_set(‘upload_max_filesize’, ’20M’); ini_set(‘post_max_size’, ’20M’); ini_set(‘max_input_time’, 300); ini_set(‘max_execution_time’, 300); The first two parameters are related to max size in MB of the uploaded file and the second two are related to how much execution …

Read More »

HTML5 specific new tags

The web has significantly evolved during the last years. Blogs, social networks, and web-based applications are some modern applications of the Internet that were never even imagined when the HTML 4.01 specification was released in 1999. Basically, what HTML5 adds compared to the previous specification is a brand new set …

Read More »
Advertisment ad adsense adlogger