Category PHP code

We post new PHP code snippets from time to time. If we need to write some code which might be useful for others, you will find that code in this category. From time to time we write PHP tutorials, too. Sometimes our code snippets are written for a special case and they might not fit in your own application. In that case we hope that our code was helpful and good enough for a quick study. If you like to share your own code, just submit the snippet to the support section.

If you look for the other PHP classes, please check our PHP script archive.

Do you remember the last website which was hacked by some kids? What was your first thought, maybe “Phew, that’s not mine”? A hacked website is terrible and the clean-up is a lot of work for the site owner. As a website owner you need to be sure that your site is always secure. It’s...

  • images
  • September 11, 2014

If you look for alternative way to integrate Facebook into your website, you should try the Facebook API. With the Graph API and the Facebook Login feature it’s possible to authenticate users in your web application and upload or post content to a user’s timeline. This Facebook API tutorial is an example how to post a link to the...

Sending e-mail messages within your web application is an important function and is often the only way to get in contact with your customer. How often have you got some email message from a potential customer with an invalid email address? Sure you can use advanced regular expression patterns, but these patterns are not smart...

CodeIgniter is a PHP framework build by EllisLab the creator of Expression Engine. In this tutorial I will cover the basics while creating a simple guest book application. First of all you need the latest version of CodeIgniter, so grab the latest release and upload the files to the root from your website. CodeIgniter uses the Model...

  • images
  • February 2, 2012

I’m using this function on almost all my websites: The function works like the sub_str() function in PHP, but without to break all the words in pieces.