How to Track Flight Status in real-time using the Flight Tracker API
The Flight Tracker API provides developers with the ability to access real-time flight status, which is extremely useful for integrating historical tracking or live queries of air traffic into your website. With this API, you can easily track the status of a flight and access airport schedules. There are several Flight Tracker…
Category : Php 06-06-2023 by Janeth Kent
Easy debug of Php with ChromePhp and ChromeLogger
ChromePhp is a Module to log useful details directly in your Chrome JS console. You can inspect most as objects and see infos or values. It is a great way to debug PHP code on the fly, in Google Chrome. It's very easy to integrate to any project and log any…
Category : Php 30-03-2023 by Luigi Nori
PHP - The Singleton Pattern
The Singleton Pattern is one of the GoF (Gang of Four) Patterns. This particular pattern provides a method for limiting the number of instances of an object to just one. It's an easy pattern to grasp once you get past the strange syntax used. Consider the following class: PHP Code: class Database { public…
Category : Php 04-02-2022 by Janeth Kent
The State of PHP 8: new features and changes
PHP 8.0 has been released last November 26: let's discover together the main innovations that the new version introduces in this language. PHP is one of the most popular programming languages in the world. Precisely its wide diffusion, has led many programmers to use it, especially for the development of server-side…
Category : Php 29-12-2020 by Janeth Kent
The most popular Array Sorting Algorithms In PHP
There are many ways to sort an array in PHP, the easiest being to use the sort() function built into PHP. This sort function is quick but has it's limitations, especially when sorting things like dates as PHP usually guesses which value is higher than the other and can produce…
Category : Php 25-08-2020 by Luigi Nori
PHP Filters: the best way to sanitize and validate datas
What are PHP filters? One of the most amazing strengths of PHP is its convenience. Shockingly this same profit has worked against PHP as numerous new coders have forgotten any security to establish safety or fails to offer the adroitness to make a class to validate their variables from end users. One…
Category : Php 02-03-2020 by Janeth Kent
Tips to Create Secure PHP Applications
PHP is one of the most popular programming languages for the web. Such languages are very helpful for the programmer but the security holes in it can create a problem. They can create problems in the development path.Below are few tips to help you avoid some common PHP security pitfalls…
Category : Php 29-06-2019 by Janeth Kent
10 PHP code snippets to work with dates
Here we have some set of Useful PHP Snippets, which are useful for PHP Developers. In this tutorial we'll show you the 10 PHP date snippets you can use on your webpages by just cutting and pasting! Get current time, formatted Super basic function, takes no parameters and returns the current date.…
Category : Php 02-08-2018 by Janeth Kent
8 Free PHP Books to Read in Summer 2018
In this article, we've listed 8 free PHP books that can help you to learn new approaches to solving problems and keep your skill up to date. Practical PHP Testing This book is aimed at advanced php developers and is comprised of articles from the author's Practical PHP Testing blog series. It…
Category : Php 20-06-2018 by Janeth Kent
Send Push Notification to Users Using Firebase Messaging Service in PHP
Today I will show you how to send unlimited free push notifications to your clients using Firebase Cloud Messaging (FCM) in your PHP web application. Push Notifications are clickable messages that come from a website. They are used to show notifications outside the web page context even if the user is not browsing…
Category : Php 14-05-2018 by Janeth Kent
PHP and XMP format: Create a Panorama 360/VR viewer in PHP and A-Frame
The Extensible Metadata Platform (XMP) is an ISO standard, originally created by Adobe Systems Inc., for the creation, processing and interchange of standardized and custom metadata for digital documents and data sets. XMP standardizes a data model, a serialization format and core properties for the definition and processing of extensible metadata.…
Category : Php 31-10-2017 by Janeth Kent
PHP: Basic Introduction to Namespaces
History of PHP Namespaces In PHP prior to 5.3 (2009), any class you define lived at the same global level as other classes. Class User, class Contact, class Db they're all together in the global namespace. This may seem simple, but it makes organization tough, which is why PHP developers started using underscores…
Category : Php 19-05-2017 by Janeth Kent
PHP 7.2 will be the first Programming Language to add Modern Cryptography to its Standard Library
Last week, the voting phase closed on an RFC to add libsodium to PHP 7.2. The result was unanimous (37 in favor, 0 against). When version 7.2 releases at the end of the year, PHP will be the first programming language to adopt modern cryptography in its standard library. What is Modern…
Category : Php 14-02-2017 by Janeth Kent
Php: How to extend the highlight_string function
PHP has a cool function that automatically highlights PHP code called highlight_string(); Theoretically this could be used to roll your own code highlighting on a site, rather than rely on JavaScript or some kind of external service to do it. In this article I'll show you the basics of how…
Category : Php 11-02-2017 by Janeth Kent
PHP Libraries For Summer 2016
Here are our picks for the 12 most useful and interesting open-source PHP libraries that you should check out this summer! Monolog With Monolog you can create advanced logging systems by sending your PHP logs to files, sockets, databases, inboxes or other web services. The library has over 50 handlers for various…
Category : Php 11-08-2016 by Janeth Kent
PHP7: Guide and References to all the changes between version 5.x and 7 of PHP
PHP 7 was released on December 3rd, 2015. It comes with a number of new features, changes, and backwards compatibility breakages that are outlined below. Performance Features Combined Comparison Operator Null Coalesce Operator Scalar Type Declarations Return Type Declarations Anonymous Classes Unicode Codepoint Escape Syntax Closure call() Method Filtered unserialize() IntlChar Class Expectations Group use Declarations Generator Return Expressions Generator Delegation Integer Division with intdiv() session_start() Options preg_replace_callback_array() Function CSPRNG Functions Support…
Category : Php 27-12-2015 by Janeth Kent
Php: Create your Caching System Easily and Quickly
If you need to integrate a caching system quickly, you can use this ultra simple file caching method to cache any kind of dynamic data. Usually, if you’re doing API calls or using PHP to pull data from another server it’s always good to implement some kind of caching layer. $exists…
Category : Php 12-11-2015 by Luigi Nori
10 Useful PHP Image Manipulation Libraries
In this article, we listed 10 PHP Image Manipulation Libraries which help developers making their tasks simpler. 1. Imagine Imagine is a OOP library for image manipulation built in PHP 5.3 using the latest best practices and thoughtful design that should allow for decoupled and unit-testable code. In order to produce RGB code…
Category : Php 09-06-2014 by Janeth Kent
PHP: list of best awesome PHP libraries
It is an exciting time to be a PHP developer. There are lots of useful libraries released every day, and with the help of Composer and Github, they are easy to discover and use. Here is a complete list of the coolest that We’ve come across. Package Management Libraries for package and…
Category : Php 27-04-2014 by Janeth Kent
How to implement a PHP session timeout on your own
To Implement a session timeout on your own, you can use a simple time stamp that denotes the time of the last activity and update it with every request. You can also use an additional time stamp to regenerate the session ID periodically to avoid attacks on sessions. Enjoy the code! if (isset($_SESSION)…
Category : Php 05-12-2013 by Janeth Kent
Hash Passwords With PHP 5.5
Every PHP developer would have to build an application that relies on a user login. It means that the user of the website having a Username and Password which is stored in the database so they can login into your website. Therefore it's important that passwords stored in the database should be hashed…
Category : Php 28-08-2013 by Janeth Kent
How to Store HTML View File In A Variable
If you are familiar with th MVC language before you certainly know the practice of separating your business logic from your HTML. The way this works in MVC language is that the framework will allow you to assign a view (HTML) to a controller (class). In this tutorial we are going to…
Category : Php 26-08-2013 by Janeth Kent
PHP: Sort array alphabetically using a string/value in subarray
If we have an array and inside each value of this array we have another array with age and name for example, and we want to sort the first array by the name of each value in the child arrays we do is using usort and strcmp functions from php. Here…
Category : Php 23-08-2013 by Janeth Kent
10 Best PHP Scripts for Polling System
In this post we will show you a collection of 10 best PHP Poll Scripts. These PHP scripts for polling system can be added in any self-hosted website. Check out these awesome and easy to install scripts. 1. JAXpoll JAXpoll is a polling widget that you can add into any of your websites.…
Category : Php 23-08-2013 by Janeth Kent
PHP: Getting started with Object Oriented Programming in PHP5
This is a tutorial covers some main concepts of OOP in PHP5 with usable examples (however useless the something may be). The tutorial only covering a few fundamental subjects, all subjects are complete in and of themselves. What is OOP? Object Oriented Programming, referred to as OOP is a way to efficiently…
Category : Php 12-08-2013 by Janeth Kent
17 Useful Code Snippets for WordPress Developers
When coding WordPress themes, especially if you do it regularly, its really useful to have a selection of code snippets in your toolbox to just 'copy-n-paste' as and when the functionality needs. Not just your most commonly used code, but also some snippets that can, when required, extend WP even…
Category : Php 09-08-2013 by Janeth Kent
SEO from Php with PhpSEO class in PHP
Here we present a class to make better SEO in your PHP. I want to post about SEO functions and classes for PHP and this is my first post about it. Let me show a demonstration of PhpSEO. Basic usage: $seo = new phpSEO("some long text here"); $keywords = $seo->getKeyWords(); $desc = $seo->getMetaDescription(); Advance usage: $seo =…
Category : Php 29-05-2013 by Janeth Kent
Learn PHP: Handy Functions for Beginners
If you’re new to PHP language, we’ll introduce you to seven really handy PHP functions in this quick tip! Function 1 : isset Check if a variable has been set. You just pass it a variable name, and it will return true if that variable exists, and is set to something other than NULL. $name = "Joe"; isset($name); // true isset($age); // false This function also…
Category : Php 11-04-2013 by Janeth Kent
12 Tutorials for creating PHP5 MVC Framework
Here we listed a set of thirteen good resources to help you get started and introduce you to some of the basic framework concepts. 1. PHP MVC Framework 2. PHP5 Framework 3. Your Own PHP Framework 4. Within An Hour PHP MVC Framework 5. Lightweight PHP MVC Framework 6. Learn To Build Your Own PHP Framework 7.…
Category : Php 11-04-2013 by Janeth Kent
PHP: Convert coordinates from degrees to decimal format
This code will convert longitude and latitude in D'M'S format into a decimal format. It also contains the function to do the reverse. The example below does contain a couple of strange lines of code. You will notice that we seperate the integer and floating point values from the decimal format…
Category : Php 11-04-2013 by Janeth Kent