How-to articles, tricks, and solutions about PHP
How to get root directory in yii2
In Yii2, you can use the following code to get the root directory:
How to Get the Current Year with PHP
On this page, you will get solutions to a common issue in PHP: how to get the current year.
How to get the full URL of a Drupal page?
In Drupal, you can use the url() function to get the full URL of a page.
How to get the OS on which PHP is running?
You can use the php_uname() function to get the operating system on which PHP is running.
How to Get the Query Executed in Laravel 5? DB::getQueryLog() Returning Empty Array
To get the query executed in Laravel 5, you can use the DB::getQueryLog() method.
How to implement 'Token Based Authentication' securely in PHPFox?
Here is a general outline of how to implement token-based authentication in PHPFox: