Author Archives: Steve

About Steve

Web Developer, IT enthusiast & PC Gamer.

Lightweight jQuery Accordion

There are many, many jQuery accordions floating around on the internet – Many of them are too complicated for a simple task, options, styles and different effects. I was recently challenged to make a very simple jQuery accordion with the … Continue reading

Posted in Javascript | Tagged , | 1 Comment

PHP – Get page links (using the DOMDocument)

PHP has a very useful library – The DOM Document. Using this you’ll be able to get the source code of a page and go through each element of the HTML filtering out what you need and don’t need, If … Continue reading

Posted in PHP | Tagged , | Leave a comment

PHP – Posting to Twitter (using OAuth)

Twitter has now moved over to OAuth (no longer supporting Basic Auth) – You’re now forced to use this when wanting to post/retrieve information using a Twitter account and Twitter Application. Since searching around I haven’t found any good examples … Continue reading

Posted in PHP | Tagged , , , | 2 Comments

PHP – Simple Captcha Class

Developing your own Captcha verifications can be quite simple with PHP and the GD library. I’ve made a very basic captcha class below that should give you a head start when protecting your web pages from automated bots. Like I … Continue reading

Posted in PHP | Tagged , | Leave a comment

PHP – cURL Example Class

cURL is a very powerful command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP. curl supports SSL … Continue reading

Posted in PHP | Tagged , | Leave a comment

PHP – FTP Class Example

One of the more useful extensions for PHP is the FTP modules. There are many uses for this, mainly uploading and downloading files to and from a remote server – Although could be used to backup websites, restore backups, file … Continue reading

Posted in PHP | Tagged , , | 1 Comment

PHP – Example Practical use for Similar Text

One of the more neat features of PHP is these functions; the ones that can analyse strings for you, taking away all of the hard work. While they’re neat to use, they may not always have a practical use in a project. … Continue reading

Posted in PHP | Tagged , , | Leave a comment

PHP – Checking POST and GET Fields

This is another very basic piece of code that will probably come in handy when manually checking form fields for data and used to determine if there is actually any data in the field. Normally you would have a block … Continue reading

Posted in PHP | Tagged , , , | Leave a comment