Get Root Directory Path of a PHP project
June 8, 2019
Root Directory Path of a PHP #Get the document root – $_SERVER[‘DOCUMENT_ROOT’] #Get the current file’s folder __DIR__
June 8, 2019
Root Directory Path of a PHP #Get the document root – $_SERVER[‘DOCUMENT_ROOT’] #Get the current file’s folder __DIR__
In PHP, you can get the name of the current method (function) from within the method using the PHP magic constant __METHOD__. Here’s an example:… Read More →
April 24, 2019
The warning “Module ‘openssl’ already loaded in line 0” is a common issue encountered by XAMPP users, signaling that the OpenSSL module is being loaded… Read More →