PHP Multiple Inheritance with Interfaces

PHP doesn’t have multiple inheritance. If you have PHP 5.4, though, you can use traits to at least avoid every class having to copy code. Note, though, you have to both implement the interface and use the trait (or, of course, provide your own implementation). And C and D are not related at all, except […]

read more

Namespacing in PHP

In PHP adaptation 5.3 another element known as namespacing was added to the language. Numerous present day language as of now had this component for quite a while, yet PHP was somewhat late to the scene. None the less, every new component has a reason for existing, how about we discover why PHP namespaces can […]

read more

PHP interview questions and answers

Comprehensive, community-driven list of essential PHP interview questions. Whether you are a candidate or interviewer, these interview questions will help prepare you for your next PHP interview ahead of time. What is PHP?PHP is a server side scripting language commonly used for web applications. PHP has many frameworks and cms for creating websites.Even a non […]

read more

How to configure XAMPP to send mail from localhost

You can send mail from localhost with sendmail package , sendmail package is inbuild in XAMPP. So if you are using XAMPP then you can easily send mail from localhost. for example you can configure C:\xampp\php\php.ini and c:\xampp\sendmail\sendmail.ini for gmail to send mail. in C:\xampp\php\php.ini find extension=php_openssl.dll and remove the semicolon from the beginning of […]

read more

Run PHP based cron job on localhost windows

Here i will possible solutions to run cron jobs on Windows: Solution-1 using Task scheduler: In your Windows 7/windows 2005/2008. Go to Startmenu->All Programs->Accessories->System Tools->Task Scheduler->create Task In the new window: General (Give the Task name and for testing you can select “Run when User is logged in”) Trigger (You can Select the running interval […]

read more

Set odbc connection using php

Using ODBC with PHP ODBC is one of Microsoft’s earliest technologies for connecting to databases. It is very popular and widely used. This article describes how to setup and use ODBC from a PHP perspective. Here are the steps for odbc connection: Now you can execute any query using connection variable. That’s solve, if you […]

read more

MailChimp API – Subscribe User Email Using PHP

MailChimp let your users to subscribe and you can send them newsletters in bulk and manage your subscriber’s lists. Although MailChimp provide forms and lot of APIs and functions but for that you need to google and search, it takes time. Here I’ll show you how you can simply write some code in to your site […]

read more

Parse.com using PHP SDK

The Parse PHP SDK gives you access to the powerful Parse cloud platform from your PHP app or script. Installation: Get Composer, the PHP package manager. Then create a composer.json file in your projects root folder, containing: If you don’t want to use Composer, you can include the autoload.php file in your code to automatically […]

read more

Create Bit.ly short URLs using PHP

One of the more popular URL shortening services is Bit.ly. I’ve showed you how to create short URLs with TinyURL and Is.Gd, so why not show you how to create Bit.ly URLs remotely? PHP Code Note that Bit.ly requires you to sign up for an account. Once you have an account, you may attain your […]

read more