I implemented a Google Custom Search to an existing site – but needed to build it in to an existing search box, so needed to add the Gogole background logo into my search box if it was empty, and have it dissapear on click, etc…..
Author Archives: chris
Automated Tiny URL
Function to create TinyURL’s on-the-fly
http://tinyurl.com/
RSS Feed reader – simple PHP class
A while ago I wrote my own RSS reader. It wasn’t that hard. But, occasionally you stumple across code like this example below that does the same thing as yours does, but sort of puts yours to shame. (Well, my version is about 3 years old now…).
So I cut down the original class and kept the bits I needed – and transferred all my implementations to the new method. Nothing changed on the front end, but I learnt a lot…
How To Download and Upload Files Over FTP
Taken from http://mypaaji.com/Index.php/how-to-download-upload-transfer-files-over-ftp/
The below given listing illustrates the process. First, a connection to the FTP server is initialized with a call to ftp_connect(); this function returns a connection handle that is used in all subsequent calls. The ftp_login() function is then used to log in to the server, while the ftp_close() function is used to terminate the connection and end the session. Between the calls to ftp_connect() and ftp_disconnect(), it is possible to perform all the actions commonly associated with an FTP session.
The below given listing illustrates four of the most common: listing files using ftp_nlist(); uploading files with ftp_put(); downloading files with ftp_get(); and deleting files with ftp_delete(). Note that ftp_put() and ftp_get() must be supplied with the remote and local file name, together with the transfer type (binary or ASCII).
Font-size ReSize with JQuery
Ever wondered how to do the Increase/Decrease font sizes without reload…?
Continue reading
jQuery show/hide DIV & Image
Show/Hide areas are common place now all over the web and are an easy way to display large amounts of information that may/may not be useful to all readers. The [+] and [-] images are the key, and changing these must be seamless..
Enter jQuery.
Continue reading
Display filesizes
Ever clicked a link only to find out that the image/download was massive and you wished you hadn’t? Wouldn’t it have been nice to have an idea of the file-size when hovering over the link?
Continue reading
Sending email attachments
An example of how to send Text & HTML email with an attachment.
Continue reading
HTTP Error codes
HTTP Error Codes – a quick reference.
HTTP Meta tags
HTTP Meta tags – examples and descriptions of their use – any my opionion on their importance.