withinweb

Information and support for products of withinweb.com

withinweb header image 4

Entries from May 2012

Regular Expressions Part 2 – Matching Patterns

May 31st, 2012 · No Comments

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 argument and an offset parameter that can be used to specify the alternate place from […]

[Read more →]

Tags: General PHP · Reg Expressions

A guide to sell digital downloads online

May 30th, 2012 · No Comments

Digital goods or electronic goods or digital products are anything you can sell that is in a digital format. The types of products include ebooks, software, website templates, music, videos, licence codes, ringtones, apps are just a few. The upfront costs of creating digital goods is tiny so it can be a great way for […]

[Read more →]

Tags: General PHP · PHP-eSeller

Regular Expressions Part 1 – Introduction

May 29th, 2012 · No Comments

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 facility. This tutorial gives a brief overview of basic regular expression syntax and then considers […]

[Read more →]

Tags: General PHP · Reg Expressions

Twitter Bootstrap – web site construction

May 28th, 2012 · No Comments

Create user interfaces quickly using Twitter Bootstrap – requires HTML5 and css3 capable browser. http://twitter.github.com/bootstrap/components.html This page shows the various components that are available.

[Read more →]

Tags: Site Design

Basic syntax of PDO Objects for PHP 5.1 and above

May 27th, 2012 · No Comments

Here are some of the basic syntax for using PDO Objects. The advantage of PDO objects is that you pass your variables into the SQL function using prepared statements. Prepared statements are what are termed paramatised queries when working with program languages like Microsoft dot.net and provide a way to prevents sql injection into databases. […]

[Read more →]

Tags: General PHP · PDO Objects

The robots.txt file

May 22nd, 2012 · No Comments

When it comes to SEO, most people understand that a Web site must have content, “search engine friendly” site architecture/HTML, and meta data such as title tags, graphic alt tag tags and so on. However, some web sites totally disregarded the robots.txt file. When optimizing a Web site: don’t disregard the power of this little […]

[Read more →]

Tags: SOE

Single and double quotes in PHP

May 21st, 2012 · No Comments

There is a difference in the way that PHP handles single and double quote marks when using the echo statement. For example : $var = ‘test’; The statements echo(‘$var’); and echo(“$var”); will generate different results. echo “\$var is equal to $var”; will display $var is equal to test While : echo ‘\$var is equal to […]

[Read more →]

Tags: General PHP

filter_var and validate an email address in PHP 5.2.0 onwards

May 18th, 2012 · No Comments

PHP 5.2.0 onwards has the filter_var function which can be used to validate many different inputs. To validate an email address : <?php //Validate an email address in PHP 5.2.0 onwards $email_address = “me@example.com”; if (filter_var($email_address, FILTER_VALIDATE_EMAIL)) { // The email address is valid } else { // The email address is not valid } […]

[Read more →]

Tags: General PHP · Security Issues

Date Only from SQL using Microsoft SQL Server

May 17th, 2012 · No Comments

Here is quite a useful function for producing or saving only the date part of the smalldatetime datatype. This can be useful if you only need to store the date or you need to group some results by date only. SelectConvert([smalldatetime],floor(Convert([float],getdate(),(0))),(0))

[Read more →]

Tags: SQL databases

Vote for the digital content type that you are selling

May 16th, 2012 · No Comments

Take the survey to tell us what type of digtial content you are selling or about to sell. This is an on going survey – we publish the results every month to see if there are any changes in trends. The survey is located on the right hand side of the page http://www.withinweb.com/phpeseller/index.php When you […]

[Read more →]

Tags: OnLine Poll Results