Quantcast
Channel: Apache/PHP – Truelogic Blog
Browsing all 28 articles
Browse latest View live

Moving an Apache PHP Mysql website to NginX PHP in 30 minutes Part 1

WHAT IS NGINX? NginX (pronounced Engine-X) is supposedly the fastest HTTP server available. In terms of speed only LightTPD comes a close second. Most PHP developers start off with Apache as the...

View Article


Moving an Apache PHP Mysql website to NginX PHP in 30 minutes Part 2

If you havent seen Part 1 of this article then you can see it here MAKING PHP WORK WITH NGINX For PHP to work with NginX it has to be installed as Fast CGI Process Manager (FPM). To know more about...

View Article


Installing latest PEAR and PHPUnit on Windows 7

For my recent project based on YII framework, I have to use PHPUnit for doing unit test.  My Local development environment is Windows 7 64 bit system. I have installed php 5.3.10, Apache 2.4 and MySQL...

View Article

Integrate the Mailchimp API with your PHP application

WHAT IS MAILCHIMP For those unfamiliar with Mailchimp it is an online service for handling subscribers and newsletters. It is mainly used to handle subscription lists and sending newsletters via its...

View Article

Integrate the Constant Contact API with your PHP application

WHAT IS CONSTANT CONTACT? Constant Contact is an online service for creating social and email campaigns which is widely used by a lot of websites. It provides a developer API which handles subscription...

View Article


PHPFileMon – A simple PHP based file monitoring system

WHAT IS IT? What led us to the creation of PHPFileMon was finding a simple way of monitoring if any file on a website had been altered or changed. This can be mainly used as a  notification tool for...

View Article

URL masking by encrypting query string

For many of my project I have written code which simply a link having some parameters as query string in url to pass information from one page to another by using GET request. However there are...

View Article

How to retrieve content from a WordPress database directly

WordPress is the world’s most popular blogging platform and is used by millions of websites. It has been converted and customized to almost any kind of website imaginable. This article is if you want...

View Article


Get invoice and account details from active subscriptions in Recurly

This article assumes you are using the PHP library for Recurly. This library is available from here : https://github.com/recurly/recurly-client-php   The code snippet shows how to obtain a list of all...

View Article


Detect Similar Documents Using PHP

Discovering identical content or similar content is done using an algorithm called Finding Document Distance. Using this algorithm, applications for finding copyright infringements, detecting duplicate...

View Article

Import data from Mysql into MongoDB with PHP

OVERVIEW This is meant to be a simple introduction on how to do basic database operations using MongoDB via PHP. 99% of PHP developers use Mysql so I have provided a sample which enables them...

View Article

Watermark an image in PHP

How to add a line of text as a watermark to any image (jpg/png/gif) using the built-in GD functions. The code given here should run on any version of PHP >= 4.0. The code creates...

View Article

Writing PHP Extensions – Part 1 Overview

WHY WRITE EXTENSIONS There can be 3 valid reasons why you would want to write an extension: You want to add some functionality which is either not already present in PHP or can be improved....

View Article


Writing PHP Extensions – Part 2 Your First Extension

See Part 1 here We are now ready to create our first extension and as expected we will call our extension “helloworld”. PHP-CPP provides us with a template project to help create our own extension....

View Article

Writing PHP Extensions – Part 3 The Four Kinds of Functions

See Part 2 Here. The PHP-CPP library defines four kinds of functions which your extension can have, based on the arguments that can be passed and the values that can be returned. All the public...

View Article


Writing PHP Extensions – Part 4 Function Arguments

See Part 3 Here Just like most other languages, you can pass arguments to your extension functions either by value or by reference. By default, all arguments are assumed to be passed by value. We...

View Article

Writing PHP Extensions – Part 5 Web-enabling your extension

See Part 4 Here So far our helloworld extension works only in the command (CLI) version of PHP. Most people use PHP as a web scripting language. In this article we will see how to...

View Article


Writing PHP Extensions – Part 6 Adding a Class to your Extension

See Part 5 Here We are now going to look at how to create a C++ class to encapsulate our extension code. This is useful if you want to group similar functions or methods in...

View Article

Free PHP Books To Download

Given below is a list of the best books for learning basic and advanced PHP books in downloadable PDF format. Developing PHP Applications for IBM Servers Authors: Whei-Jen Chen, Holger Kirstein, Daniel...

View Article

How Many Ways To Sort an Array in PHP

Apart from the standard sorting function which will sort the values of an array in ascending or descending order, PHP provides numerous other functions which can do sorting in different ways. There are...

View Article
Browsing all 28 articles
Browse latest View live