The WHILE loop is one of the most useful commands in PHP. It is also quite easy to set up and use – granted it might look a bit complicated. First off however let’s figure out just what the hell a WHILE loop is – and what we need it for. A WHILE loop will, as the name suggests, execute ...
Mail is extremely easy to send from PHP, unlike using scripting languages which require special setup (like CGI). There is actually just one command, mail() for sending mail. In this tutorial we will discuss how to use PHP’s mail() function. It is used as follows: mail($to,$subject,$body,$headers); In this example I have used variables as they have descriptive names but you could ...
Signature Auto Leasing, a New York based leasing company, came to us with a static website, perfect for a leasing company – however lacking certain functionality. For example, their home-page features 6 lease specials – which are displayed through the use of rollover images. Finalizing each row are 2 static images which lead to their respective contact forms. This same ...
Google Summer of Code is a global program that offers post-secondary student developers ages 18 and older stipends to write code for various open source software projects. Over the past eight years more than 6,000 students have “graduated” from Google’s Summer of Code program, working with almost 400 different open source projects. Students who are accepted into the program will put ...
Lately Microsoft has really done quiet good at making it known that they are aware of the faults within Internet Explorer - and how difficult it makes development
PHP 5.5 is still in the Alpha stages of it’s release, and as such the majority of hosting companies out there don’t have it available yet across their networks. CloudLinux however doesn’t believe in that. Not when they have the PHP Selector tool in their arsenal. With the CloudLinux PHP Selector you can set a different version of PHP for ...
PHP has many different template solutions, and the beauty of them all is how simple it makes maintaining and changing your website. Back in the day when everything was handled with static HTML files – if you needed to add a new link to your main menu – you found yourself editing dozens if not hundreds of different files. With ...
A PHP function is merely a block of code that can be defined once and then reused throughout various other parts of your script/program. Typically, a function takes an argument, or a series of arguments, and performs a predefined set of operations on them – returning a value as a result. With PHP functions, code that would otherwise be repeated ...
PHP has plenty of different operators, the majority of them being either unary or binary operators. A unary operator, such as !, performs its operations on just one single value. A binary operator, such as =, is used to perform an operation on two operads. So following the naming logic you’ve probably already figured out that a PHP ternary operator ...
As part of Google’s spring-cleaning announcement – the FeedBurner API has been shut down. Any application that requests subscriber information will fail to retrieve the data. This includes custom subscriber count widgets, and various iPhone apps – like Ego. This does bring up the concern of what will come of FeedBurner over the next several years. Will the service slowly be phased ...
Developing in HTML5 hasn't exactly been easy - since most documentation that's currently available for HTML5 is biased towards a specific browser. Adobe, Apple,
Welcome to the .htaccess tutorials section of the Rapid Purple blog. The following tutorials are aimed to give you an introduction to creating and working with an .htaccess file; along with a few useful tips and tricks every webmaster should be familiar with. Creating An .HTACCESS File First things first. Before you can start using any htaccess commands and functions, ...
The New York Criminal & Civil Courts Bar Association came to me requiring a members portal to be setup on their site and for Fastcase to be integrated within this system. Fastcase is the leading next-generation legal research service that puts a comprehensive national law library and smarter and more powerful searching, sorting, and visualization tools at your fingertips. Approved members ...
Escaping characters is basic, but essential to an error-free PHP script. Consider the following sentence for example: Mike’s uncle said, “Isn’t that cool?” Now if we attempt to use PHP to echo this sentence to the browser, those quotes and apostrophes will cause some problems. The quotes and apostrophes inside the string are confused for the symbols used to signify ...
Pipelines are a great way to string together a series of commands. This means that the output from the first command in the pipeline is used as the input for the second command in the pipeline. The output from the second command in the pipeline is used as the input to the third command in the pipeline, and so on, ...
Command History Bash keeps track of a certain number of previous commands that you have entered into the shell. The number of commands is given by a shell variable called HISTSIZE (which we will discuss later on). Bash stores the text of your previous commands in a history list. When you logon to to your account, the history list is ...
The GNU Bourne-Again SHell (BASH), as the name implies, is an extension of the Bourne shell. It provides a Command Line Interface (CLI) for working on *nix systems and is the most common shell used on Linux systems. Chances are that if you’re managing your own virtual or dedicated server – you’ll end up using the bash shell fairly often. ...
The PHP development team is proud to announce the immediate availability of PHP 5.4.0. Sadly however – most servers and hosting companies out there are still running PHP 5.2.x – so while the release of PHP 5.4.0 comes as great news, many of you probably won’t experience it for another year or so. Before we get into that though, let’s take ...
Have you ever noticed that lots of websites feature some text towards the very bottom of a page saying “Page took x.xxx seconds to load”? It’s a pretty simple thing to make and gives your site something that we all love … stats! So today we’ll take a look at how to accomplish this through the use of PHP. First ...