Skip to content
Programming Tips
  • Home
  • Frameworks
    • Laravel
    • CakePHPCakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.
  • Magento
    • Magento 2
    • Magento 1
  • PHP
  • JavaScript
    • jQueryjQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.
  • CSS
  • Other
    • htaccess
    • SSH
    • Server Management
  • Hosting
  • Toggle website search
Menu Close
  • Home
  • Frameworks
    • Laravel
    • CakePHP
  • Magento
    • Magento 2
    • Magento 1
  • PHP
  • JavaScript
    • jQuery
  • CSS
  • Other
    • htaccess
    • SSH
    • Server Management
  • Hosting
  • Toggle website search

PHP

  1. Home>
  2. PHP
Read more about the article PHP: Get the PHP extension name of a class by the class name

PHP: Get the PHP extension name of a class by the class name

  • Post published:May 10, 2020
  • Post category:PHP
  • Post comments:0 Comments

$class_name = 'DOMDocument'; $class = new ReflectionClass($class_name); $extension = $class->getExtension(); echo $extension;

Continue ReadingPHP: Get the PHP extension name of a class by the class name
Read more about the article PHP: Display all functions and classes within a PHP extension by extension name

PHP: Display all functions and classes within a PHP extension by extension name

  • Post published:May 10, 2020
  • Post category:PHP
  • Post comments:0 Comments

$extension_name = 'dom'; $extension = new ReflectionExtension($extension_name); print_r($extension->getFunctions()); print_r($extension->getClassNames());

Continue ReadingPHP: Display all functions and classes within a PHP extension by extension name
Read more about the article PHP: Get the PHP extension name of a function by the function name

PHP: Get the PHP extension name of a function by the function name

  • Post published:May 10, 2020
  • Post category:PHP
  • Post comments:0 Comments

$function_name = 'imagecreate'; $class = new ReflectionFunction($function_name); $extension = $class->getExtension(); echo $extension;

Continue ReadingPHP: Get the PHP extension name of a function by the function name
Read more about the article PHP: Convert IPv4 to IPv6

PHP: Convert IPv4 to IPv6

  • Post published:November 14, 2019
  • Post category:PHP
  • Post comments:0 Comments

The following PHP function will help you easily convert IPv4(IP address version 4) to IPv6(IP address version 6). The function will return false if the provided IP address is invalid…

Continue ReadingPHP: Convert IPv4 to IPv6
Read more about the article Darken or lighten colors dynamically using PHP

Darken or lighten colors dynamically using PHP

  • Post published:November 13, 2019
  • Post category:PHP
  • Post comments:0 Comments

Below is a snippet of the code and usage guide. PHP Function function colourBrightness($hex, $percent) { // Work out if hash given $hash = ''; if (stristr($hex, '#')) { $hex…

Continue ReadingDarken or lighten colors dynamically using PHP
Read more about the article How to use MySQL to search in PHP serialized fields

How to use MySQL to search in PHP serialized fields

  • Post published:January 17, 2015
  • Post category:MySQL/PHP
  • Post comments:0 Comments

Well, first rule – you should not do this. But if there is good reason, consider using such query for searching in index-based arrays: In case you have assoc array…

Continue ReadingHow to use MySQL to search in PHP serialized fields
Read more about the article MySQL: Select records from today, this week and this month

MySQL: Select records from today, this week and this month

  • Post published:January 16, 2015
  • Post category:MySQL/PHP/Uncategorized
  • Post comments:0 Comments

Assuming your date column is an actual MySQL date column: SELECT * FROM jokes WHERE date > DATE_SUB(NOW(), INTERVAL 1 DAY) ORDER BY score DESC; SELECT * FROM jokes WHERE…

Continue ReadingMySQL: Select records from today, this week and this month

Verify Item Purchases with the Envato API

  • Post published:December 4, 2014
  • Post category:PHP
  • Post comments:0 Comments

This article focuses on how to simply and efficiently converse with Envato’s API in order to verify the authors’ customers’ purchase codes in the author’s own applications. I talk through…

Continue ReadingVerify Item Purchases with the Envato API

Verify hex color string

  • Post published:July 25, 2014
  • Post category:PHP
  • Post comments:0 Comments

Verify hex color string This PHP script checks if a string $color is a hex color or not. The second IF statement will add the pound symbol at the beginning…

Continue ReadingVerify hex color string

PHP: CHMOD a directory recursively

  • Post published:April 28, 2013
  • Post category:PHP
  • Post comments:0 Comments

The script below loops over the specified directory and chmods its files, directories and subdirectories recursively.

Continue ReadingPHP: CHMOD a directory recursively
  • 1
  • 2
  • Go to the next page

Search

Categories

  • Cloudflare
  • CMS
    • Joomla
      • Joomla Templating
      • K2
      • T3 Framework
  • CSS
  • Excel
  • FaceBook
  • Frameworks
    • CakePHP
  • General
  • Git
  • JavaScript
    • AJAX
    • jQuery
    • MooTools
  • Magento 1
  • MySQL
  • PayPal
  • PHP
  • Security
    • htaccess
    • Server Management
    • SSH
  • Ubuntu
  • Uncategorized
  • WHMCS

Tag Cloud

AJAX CakePHP CakePHP 2 Cart Cloudflare CSS CSS3 Envato Error facebook facebook comments Git GoDaddy htaccess IP address IPv4 IPv6 JavaScript Joomla Joomla 1.5 JQuery K2 Magento 1 MySQL PHP Price Programmatically Rule Security Server Management Shopping SSH T3 Framework url warning

Recent Comments

  • Piter entity on Magento – How to create a special price (sale) page? (with new products first)
  • ILDaviz on Magento Dataflow Export/Import form the command line
  • ala on Warning: Parameter 2 to frontpage() expected to be a reference
  • Support PaceTech on Magento: Rating showing twice on product pages
  • Susanta Kumar Das on Magento Dataflow Export/Import form the command line
  • Privacy Policy
  • Terms of Use
Copyright - WordPress Theme by OceanWP