↓ Skip to Main Content
Programming and Books

Programming and Books

Main Navigation

  • Home
  • eBooks
    • eBook: PHP Tutorials
    • eBook: jQuery
    • eBook: HTML Beginners
  • Contacts
  • eBooks Download Code
  • eBook Code Samples
    • PHP Tutorials: Code Samples
    • Code Samples for jQuery Book
  • Applications
  • Blogs
    • General PHP
    • Your Books

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 pagination

Previous 1 2

Footer Menu

  • About Us
  • eBooks Download Source Code
  • Applications
  • Blogs
Copyright © 2025 Paul Gibbs | Powered by Responsive Theme
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_ga_6CGSLHX9YS2 yearsNo description
SAVE & ACCEPT
Powered by CookieYes Logo