Home > Tag Archives: php

Tag Archives: php

July, 2017

  • 1 July

    How To Populate A DIV via an HTML SelectBox, PDO, and jQuery

    Imagine you have a database full of information, and you want to let users browse that data in the simplest way possible. Say you have a wide selection of data surrounding song titles & their artists, and you want to create a simplified search system that lets users select a song and instantly see who that song was by. You ...

May, 2017

  • 15 May

    How To Validate Form Data With PHP

    Whenever you’re dealing with online forms it’s important to perform proper validation on the data that is submitted. Form validation ensures that the user will enter valid data on the form – minimizing your chances at possible SQL injections. PHP lets us perform server-side validation, and lets us display the appropriate error messages if a user enters incorrect values. Throughout this ...

September, 2016

  • 13 September

    Understanding PHP Constants

    A constant within PHP is essentially an identifier for a simple value, and unlike a variable, the value of a constant cannoyt be changed after it is declared. By default a constant is case-sensitive; and most people tend to give constant identifiers uppercase names. To get started you will want to define a constant using the define() function, like so: define("SITENAME", ...

December, 2015

  • 3 December

    PHP 7 Is Officially Out!

    PHP 7 is officially out – and just in time also. Facebook’s HHVM project has been taking off, and luckily all current benchmarks for PHP 7 show it to be on-par with the speed of HHVM – something PHP developers have yearned for. If you still haven’t updated you’re code to support PHP 7, now would be the time fellas. Luckily ...

August, 2015

  • 16 August

    Get A Users Gravatar Image Via PHP

    Gravatar’s have been popular for years now – and to date they’re integrated across a plethora of websites – serving over 8.6 million avatars every single day. With that said there are also a ton of plugins available for most blog and CMS scripts; however what if no plugin exists for our website, or we simply want to do it ...

  • 3 August

    The 10 Things All PHP Programmers Should Know

    The Internet as we know it was built by webmasters, designers, and developers who got their start thanks to a slew of free resources and tutorials that were available to them. This is something that I have always streamed to maintain with Rapid Purple – and it seems Josh Leskar and his team over at Udemy share some of that ...

January, 2015

  • 15 January

    Auto Generation of New Prospects in eLEAD CRM via ADF XML Emails

    Earlier in the week I had to do a rather niche task with a local leasing company I work with. They have switched over to eLEAD CRM and as such wanted to convert all of their online lease quote request forms to submit to their new eLEAD CRM. This way requests from existing customers will automatically be assigned and recorded ...

October, 2014

  • 30 October

    The Basics of PHP Classes and Objects

    As you learned in previous tutorials functions provide a way for you to divide your program’s tasks into separate, smaller tasks. Classes and objects are somewhat similar in helping you to organize your program. They are used to create collections of related variables and functions, which can be used to more accurately represent real-life situations. So you might have a ...

  • 28 October

    FOR and FOREACH Loops

    Much like WHILE loops FOR and FOREACH loops are meant to enable the repeated execution of a section of code. However, unlike while statements, for and foreach have features built into them to update the sentinel value for every repetition. So lets go back for a moment to our original example in the WHILE loops tutorial – Bart Simpson having to write ...

  • 28 October

    String Manipulation – Using STRPOS and STR_REPLACE PHP Functions

    So we have substr and strlen PHP functions covered now – however there is alot more PHP can do out-the-box with strings. Let’s say we are storing the users full name within our database in a single column in the following format firstName-lastName. However on our frontend we want to be able to echo out the first and last name separately. ...

  • 27 October

    String Manipulation – Using SUBSTR & STRLEN PHP Functions

    Now that we’ve covered the basics of what functions are within PHP – PHP has a wide array of functions already available for you to use to work with various strings. So let’s say that we have a variable holding a user’s telephone number and we’re asking our user to input the last 4 digits of their phone number to verify ...

  • 16 October

    The PHP Switch Conditional Statement

    The switch statement allows you to simplify our previously written if…elseif…else statement by not constantly writing out the condition to check for. So, let’s take our code: <?php $name = "Eric"; if ($name == "Mike") { echo "Name Is Mike B."; } elseif ($name == "Eric") { echo "Name is Eric A."; } elseif ($name == "JD") { echo "Name ...

  • 16 October

    Understanding IF / ELSE / ELSEIF Statements

    The majority of the time your PHP application or script will vary depending on different conditions. These conditions can be set via the script itself, or from user interaction – regardless your PHP script needs a way to handle these different situations. This is where conditional statements in PHP are introduced. PHP has several different conditional statements: if statement – ...

  • 16 October

    Variables – Understanding Global, Local, & Static Variable Scope

    While we have covered the basics in how to use variables within PHP there's still a whole other side to variables we haven't discussed yet. This includes understanding variable scope ...

September, 2014

  • 2 September

    PHP NG Enabled On All Rapid Purple Hosting Servers

    Since I was already working on the PHP configurations for Rapid Purple Hosting servers, and since PHP NG has shown some tremendous performance gains, It seemed appropriate to enable it for developer use across all Rapid Purple Hosting servers. If you’ve never heard of PHP NG before, PHP NG was first introduced in May, 2014 as a major effort to ...

  • 2 September

    PHP 5.6.0 Released & Installed on Rapid Purple Hosting Servers

    Just before the weekend the PHP team announced the official release of PHP 5.6.0. The new version brings about a slew of awesome new features with it, and some of you have already taken advantage of them through the early installs of bugfix versions of PHP 5.6.0 on the Rapid Purple Hosting servers. This install has now been updated to ...

August, 2014

  • 15 August

    Issuing SQL Statements Using PHP Data Objects

    This tutorial expands upon our previous PHP Data Objects tutorial, which discusses how to connect to a MySQL database, and showcases how to communicate with that MySQL database once you are connected. Depending on the type of query you want to run you’ll be issuing statements in two different ways: For example let’s say you need to run an SQL query to update ...

  • 8 August

    Connecting To A Database Using PHP Data Objects

    With the release of PHP 5.5.0 the mysql_* functions have become deprecated and as such connecting to a MySQL database with PHP 5.5 and up will require the use of either PHP Data Objects (PDO) or an individual MySQL driver (MySQLi). Throughout this tutorial we will focus on utilizing PDO to connect, access, and disconnect from a MySQL database. If you’re ...

  • 5 August

    PHP 5.6.0 Now Available for All Rapid Purple Hosting Clients

    As you may know by now I strive to maintain a perfect development environment here with Rapid Purple Hosting. With that said just a few days after it was officially announced by the PHP development team, the latest bugfix-only release of PHP 5.6.0 is now available on all of our client servers. This is the third RC version of PHP 5.6.0 now which accumulates all bug ...

July, 2014

  • 31 July

    Including Another File Within Your Script

    Almost all online scripts and applications will feature a core library of variables and functions that get utilized throughout the script. For example, let’s say you’re writing a database intensive application. You could declare your MySQL details within each page of your script – however if you ever changed your password that would mean that you would need to update ...

Like every other website, this site uses cookies to analyze our traffic. Cookies may also be utilized by our advertisers and partners. By using this website you agree to the use of said cookies. More Information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings, continuing to navigate past this message, or you click "Accept" below then you are consenting to the use of cookies on the Rapid Purple website.