↓ Skip to Main Content

Main Navigation

  • Home
  • eBooks
    • eBook: PHP Tutorials
    • eBook: HTML Beginners
  • Contacts
  • eBooks Download Code
  • eBook Code Samples
    • PHP Tutorials: Code Samples
  • Applications
  • Blogs
    • General PHP
    • Your Books
Home › Blogs › Archive for General PHP › Page 2

Category: General PHP

Regular Expressions Part 2 – Matching Patterns

By euop Posted on July 16, 2015 Posted in Blogs, General PHP

Matching Patterns The preg_match() function performs Perl-style pattern matching on a string. preg_match() takes two basic and three optional parameters. These parameters are, in order, a regular expression string, a source string, an array variable which stores matches, a flag …

Regular Expressions Part 2 – Matching Patterns Read more »

Regular Expressions Part 1 – Introduction

By euop Posted on July 16, 2015 Posted in Blogs, General PHP

In programming you quite often want to test a string for the occurrence of a character or group of characters. This is particularly true for such things as data validation on form input boxes. Regular expressions provide a pattern matching …

Regular Expressions Part 1 – Introduction Read more »

Use regular expressions to validate PHP inputs

By euop Posted on July 16, 2015 Posted in Blogs, General PHP

To help counter SQL injections you need to make sure that entered values use minimum character types as possible. So you restrict usernames to just a-z and 0-9 characters. To test for these, use something like : //—————————————————— /** * …

Use regular expressions to validate PHP inputs Read more »

Removing depreciated messages in PHP

By euop Posted on November 2, 2014 Posted in Blogs, General PHP

To remove depreciated messages form displays you can use the ~E_DEPRECATED value in the error_reporting function something like the following : error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);

A Shopping Cart using PHP Sessions

By euop Posted on October 25, 2014 Posted in Blogs, General PHP

This posts illustrates a relatively simple shopping cart using PHP sessions to store the cart details, quantities and total cart amount. The cart has an ‘add to cart’, ‘remove from cart’ and displays the total value of the cart. This …

A Shopping Cart using PHP Sessions Read more »

Posts navigation

Previous 1 2

Recent Posts

  • Update to PHP Tutorials: Programming with MySQL and PHP
  • Updating SQLite database when updating a Xamarin Forms App for iOS and Andriod
  • PHP-eSeller updated with Album display
  • Do I need SSL on my Web Server for use with PayPal IPN?
  • WordPress Plugin for selling License Key Codes – PHP-KeyCodes

Footer Menu

  • About Us
  • eBooks Download Source Code
  • Applications
  • Blogs
© 2021 Paul Gibbs | Powered by Responsive Theme