PHP Coding School

                          

                   

Note: The archives category content is an automatically generated focus channel and does not neccessarily reflect the opinions of this blog. No responsibility is taken for the external links presented here, follow at your own discretion.
The archives content is never scraped from sites - but an abstract obtained from search engines.

Category: 'PHP Coding Specialist'

Ping host measured in microseconds

Wednesday, July 4th, 2007
Problem Solution Example Reference Recommended


You want to ping a host on a given port and record time taken in microseconds.

The following solution uses PHP socket libraries to open a connection, to the given host and port - then just close it again. By obtaining the microseconds before and after, it is able to deduce time taken in microseconds.

Additionally I’ve added functionality to print the epoch, so the timestamp can be obtained.



pinging host measured in micro seconds

Friday, May 25th, 2007
Problem Solution Example Reference Recommended


You have a requirement to capture network speed, in microseconds.

The required speed was less than 0.25 of a second (or quarter of second).



Useful PHP script - running queries against sybase database

Wednesday, May 23rd, 2007
Problem Solution Example Reference Recommended


you want to run queries against a Sybase Database, using the PHP API.



display an image with a label superimposed

Sunday, May 20th, 2007
Problem Solution Example Reference Recommended


You want to generate an image, with text over the top.



PHP and AJAX tool to transform text

Thursday, May 17th, 2007
Problem Solution Example Reference Recommended


You want to transform text form ascii to base64, urlencode it, digest it, etc.

Or you want to decode these formats.



making a thumbnail image on the fly

Monday, May 14th, 2007
Problem Solution Example Reference Recommended


You need to make a thumbnail of an image, on the fly.



converting a GIF to a PNG with PHP

Sunday, May 13th, 2007
Problem Solution Example Reference Recommended


You need to convert a GIF into a PNG.



PHP MySQL Web Interface

Monday, April 30th, 2007
Problem Solution Example Reference Recommended


Having written a ga-zillian scripts, to query dbs, decided it would be much simpler to call just one function multiple times, duh! :)

Then fulfilling business request after request - with many short php web pages calling the function. Decided to progressing this further - by removing the web page altogether (hitting the function via a wrapper). Let it handle the query, via variable parameters passed in on the HTTP GET.

This posed a bit of problem, pushing complexity on the enquirer. So then decided to write a web (interface) form to drive the function (wrapper) - which subsequently made the query. :)

All will become clear shortly! :)



Writing a wordpress plugin - 3 easy steps

Saturday, April 21st, 2007
Problem Solution Example Reference Recommended


You want to create a wordpress plugin, which substitutes your tags for HTML.




Google
 
Failing that - a post search:



Categories: PHP Coding Training PHP Coding Specialist Perl Coding Training Perl Coding Specialist
LDAP Coding Training LDAP Coding Specialist UNIX Coding Training UNIX Coding Specialist Archives


A DarlingRanges.com Site























Associated
Amusing take on PHP
Article on PHP5 and EOL for PHP4