function isCli(){
if( defined('STDIN') )
{
return true;
}
if( empty($_SERVER['REMOTE_ADDR']) and !isset($_SERVER['HTTP_USER_AGENT']) and count($_SERVER['argv']) > 0)
{
return true;
}
return false;
}
-
Convert given MySQL date string into a different format.
Retrieves the current time based on specified type.
Php function to retrieves the current time as an object with the timezone from settings.
Php function to convert a duration to human readable format.
How to solve Specified key was too long error in laravel migration
How to dynamically run migrations in laravel
Basic composer cheatsheet
How to manually Install php on WampServer.
How to Upgrade PHP in WAMP
How to upgrade to PHP version 8 in WAMP Server Localhost
Reusable Laravel Routing patterns
How to Include Custom Post Types in WordPress Search Results
How to integrate the AWS SDK with other HTTP clients
How to use scheme in aws S3Client
How to use http options on S3Client to set cert
How to read word document in php
Php class to extract text from word file .doc,docx,.xlsx,.pptx php
Determine if url or path is relative or absolute in php
Http Response Codes Defined as php constant
MIME Types by file extension in a PHP array
How to Initialize WordPress environment to use in command line script
How to run a script via command Line In wordpress
Here is the php function to determine wordpress base path in wordpress
Download image from remote URL and upload to WordPress media library
How to Check if php script is running from cli or command line interface
How to remove base url prepended to remote image url in wordpress
How to Write Php better. PHP Style Guide
How to resolve Composer runs out of memory Issues .
List of all countries with names and ISO 3166-1 codes in Php
Php and Javascript logic for taking payment using stripe api