Posts

Showing posts with the label php

How to detect a bounce email

1. make sure the email you send out have the header "Return-Path: detect-bounce@example.com\r\n", & "Return-Receipt-To: bounce@example.com\r\n" 2. setup this detect-bounce mail account at your mail server

MySQL LIMIT Optimization

I have this scenario where MySQL LIMIT syntax is very slow for table having 30 million records. Solution Instead of using MySQL LIMIT you may use WHERE and BETWEEN which works pretty fast.

Combine and Minify CSS and Javascript Files Using Minify

Combine, Minify, Cache CSS and Javascript Files This tutorial will teach us how to combine and minify CSS and javascript files using [http://code.google.com/p/minify/ Minify] thus will help your site regain high performance result and pass the tests of Yahoo!'s YSLow, Google's Page Speed, or AOL's WebPagetest.

PHPUnit Bootstrap with PHP Autoload

I have a scenario wherein after upgrading PHPUnit 3.4.11 to version 3.5.3, an existing bootstrap file for phpunit suddenly encountered an error complaining about class was not found. It seems PHP __autoload is not working.

Selenium Remote Control on Linux

This a tutorial about front-end unit testing using Selenium Remote Control and Firefox on a headless Linux server. Requirements Selenium Remote Control Firefox Xvfb (X Windows Virtual Frame Buffer) PHPUnit

How to Configure phpUnderControl

http://docs.google.com/present/view?id=dfc724c8_4cmdtpqhs Configuring phpUnderControl This an overview of configuring phpUnderControl. This includes adding projects using phpUnderControl's command line, enabling PHP Mess Detector, enabling Artifacts, and adding new tab on phpUnderControl's menu.

How to Install CruiseControl

Setting Up and Configuring CruiseControl - learn how to install cruisecontrol. This page is primarily focused on installing and configuring CruiseControl on Linux which includes - Procedures on Running Your Very First CruiseControl Server - Implementation of phpUnderControl - Adding New Projects on CruiseControl - Integration of Some of the Best PHP Development Tools.

How to Fetch YSlow Beacon Result and Save as HTML

How to Fetch YSlow Beacon Result and Save as HTML Introduction YSlow analyzes web page performance by examining all the components on the page, including components dynamically created by using `JavaScript`. It measures the page's performance and offers suggestions for improvement. YSlow is integrated into the Firebug web development tool for Firefox. On this tutorial, we will learn how to fetch YSlow beacon result and save it as html.

Graphical Plot of Xdebug Cachegrind

Graphical Plot of Xdebug Cachegrind - Update for How to Create Graphical View of Xdebug's Cachegrind Output . This a command line approach of profiling a single php script using Xdebug. Running Xdebug profiler from CLI is simply by executing your php script along with xdebug directives using `-d` option, this will then create a cachegrind file which we're going to convert into a visual plot using xdebugtoolkit and Graphviz.

Setting Up and Configuring Xdebug

Setting up and Configuring Xdebug Install Xdebug There are three ways you can install Xdebug. - Installing precompiled modules. - Install through PEAR/PECL. - Compiling from source.

Frontend Unit Testing using PHPUnit and Selenium RC

How to Implement Frontend Unit Testing using PHPUnit and Selenium RC - on this tutorial we'll learn how to implement UnitTesting, UnitTesting which is known to be applicable only on server side scripts. On this article we'll tackle ways of using PHPUnit and Selenium RC so as to test the output of our sites on any browsers.