Archive for the ‘PHP’ Category

06 April 2013

enable-mod_rewrite

Enabling mod_rewrite on Windows Apache for URL rewriting

A tutorial demonstrating how to enable mod_rewrite which will allow a website running on a WAMP stack to use a local .htaccess file for URL rewriting.

Activate mod_rewrite on WAMP »

29 March 2013

jquery-twitter-feed

Tweet Caching with PHP & JQuery

Part 2 of the custom twitter feed tutorial with authentication. Caching the twitter feed to a local file can speed up loading of tweets and negate Twitters rate limiting.

Twitter feed caching »


scheduled-task-php-linux-plesk

Scheduled Task for PHP scripting in Plesk & Linux

A tutorial for setting up a scheduled task using Plesk 11 on Linux. A couple of steps are involved for the scheduled script; ensuring Access to the server over SSH is specified and using wget utility to run the PHP script.

Scheduling a PHP script from Plesk »

18 February 2013

jquery-twitter-feed-oauth

Authenticating a User Timeline for Twitter OAuth API V1.1

A tutorial designed to help anyone who is using or wants to create a custom Twitter feed that needs to authenticate basic read-only access for any public user timeline with Twitter OAuth, API V1.1.

Authenticate a Twitter feed with OAuth »

16 March 2012

Indexing MySQL fields to speed up PHP queries

Indexing database fields can do wonders to speed up complex PHP queries. This post goes shows how easy it is to know where to use indexes and how, using MySQL, PHP and PHPMyAdmin.

Speed up PHP through MySQL indexing »

14 February 2012

PHP function: calculate x seconds, minutes or hours ago

A useful Twitter style PHP time interval function to calculate the difference in seconds, minutes, hours or days between two different dates and times. The function can be used to display seconds, minutes or hours only, or display the most relevant time measurement unit automatically.

PHP time interval function »

02 February 2012

PHP get first paragraph from a string function

A useful PHP function that gets the first paragraph from a regular HTML string, with option to remove the paragraph tags.

Get first paragraph function in PHP »

07 January 2012

Reset PHP Recordset for Multiple Repeat Regions

How to re-use a PHP recordset by resetting the recordset pointer. This allows multiple repeat regions from the same recordset to be used.

Reusing a PHP recordset »

26 November 2011

Apache php display friendly server error

How to display a friendly PHP error on a windows 7 PC running Apache Server.

Display friendly PHP error »

25 October 2011

Scheduling a custom php script URL with plesk

Using Plesk's 'scheduled task feature' to call a PHP page on your server for the scheduling of PHP scripts.

Scheduling PHP scripts »