php default include path
The default include path in php is “.:/usr/share/pear:/usr/share/php”(3 directories). You can change the include path by the include_path=”” option in php.ini. Note that the directories are separated by colon in […]
The default include path in php is “.:/usr/share/pear:/usr/share/php”(3 directories). You can change the include path by the include_path=”” option in php.ini. Note that the directories are separated by colon in […]
Two modifiers are involved in php multiline regex expression: m and s. Specifically, the m modifier has influence on the interpretation of the ^ and $ symbols while the s […]
I do not understand why the prepare function and the bindValue function exist in QSqlQuery, although I used them many times. Things could be simpler: QSqlQuery query(“select * from myprogrammingnotes”); […]
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 […]
Where is my composer installed on Windows 10? Very likely, you will ask this question after you download composer and install it on your system, because the installer does not […]
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 […]
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, […]