We’ve talked about how to install composer on Windows. But your website which uses composer packages in php is typically on a Linux server. So, today we will present you […]

I never used php namespace as my project is not complex enough to use it. But a small project cannot prevent some programming guru from using namespace. The result is […]

To access public property of object in php, just use $obj->propertyname like: class MyClass { public $a; }; $my=new MyClass; $my->a=1; echo $my->a; Note that, unlike C++, you cannot use […]

php has a set of functions that you can use to generate images on the fly, or add text to existing images. Basically, you use imagecreatetruecolor to create an image(or […]

firefox extension console log

When you are debugging your javascript code(so called page script) of your website, you may use console.log to write the value of a variable to console. You can press F12, […]

When browser starts to load a web page, document.readyState===loading. When DOM is constructed, document.readyState==interactive. When page is fully loaded, i.e., the images/css are all loaded, document.readyState===complete. After document.readyState becomes interactive, […]