Category: PHP

  • Hosting solutions for Professional PHP

    PHP

    As one of the most popular scripting language for designing web pages, finding the right hosting solution for professional PHP purposes can be a tricky proposition. To develop websites in PHP you need a hosting server that is equipped with a PHP module, but many developers prefer the freedom of being able to install a range of modules as they require them. Of course, to be able to do this you need a hosting solution that supports numerous scripting languages. When it comes to finding a hosting solution for PHP, Python and Scala apps, there are a number of available options you can choose from, so let’s take a look at some of these options.

    (more…)

  • Conditional Operators – Learning PHP for absolute beginners

    Road signsThe power of any programming language is all about making decisions based on user selection. Conditional operators (conditional statements) execute code only when certain condition is met. If the expressions inside the parentheses () evaluate to true, the code between braces {} is executed. If it is false, then the code between braces is skipped. It’s worth mentioning that the code which follows the closing brace } is executed in any case, ‘coz it’s not part of the conditional statement. Since the same principle is used throughout all programming languages, you can learn it in the PHP context and the apply the same skils, say, in JavaScript. Ain’t it cool? (more…)

  • PHP operators and expressions – Learning PHP for absolute beginners

    Gears - image by Alvaro Heinzen

    This time around we’ll tackle one more rather interesting and really crucial notion in PHP and for that matter in any other programming language. PHP operators allow you to perform different operations with numeric variables. It is necessary to specify two operands and the appropriate symbol of mathematical operation. For example, the operation of addition (+) can be performed as follows: $x + $y. An operator is a symbol that manipulates 2 or more values.We can group PHP operators into ten types: arithmatic operators, assignment operators, comparison operations, incrementing/decrementing operators, and logical operators. Do you feel like making new friends today? πŸ™‚ Let’s meet the first group.
    (more…)

  • Learning PHP for absolute beginners – data types

    PHPPHP can work with 8 different types of data, which can be separated into 3 categories: scalar data types, compound data types and special data types.

    Not that scary as it might sound. You already know half of that stuff. Of course if you attended math classes at school πŸ™‚ … I did not πŸ˜‰
    (more…)

  • PHP variable – Learning PHP for absolute beginners

    PHP
    In this tutorial we’ll cover the bread and butter of any programming language, including our beloved PHP – the variable. So what is it? Think of it as a container which holds some specific value.
    (more…)

  • Learning PHP for absolute beginners – Your first PHP script

    PHPWelcome back, my young padavan πŸ˜‰ Our series of tutorials Learning PHP for absolute beginners continues on, and in this one we’ll meet the PHP script (or code) for the first time. Don’t worry. I’ll make sure that it’s as pleasant as possible in these circumstances.
    (more…)

  • Learning PHP for absolute beginners – Introduction

    Before we start learning PHP we should at least get a basic idea of what that is. So here it is:

    PHP is a server-side scripting language originally created for building interactive and dynamic websites. The syntax of PHP is quite similar to C and Pascal.

    Not much, heh? Well, I’m not a history teacher, so we’ll skip that stuff. You can read it yourself when you have a good catch on PHP. (more…)

  • How to setup a local server using WAMP

    New to websites, CMS, PHP and all that stuff? Don’t want to pay for a server and domain name till you learn what that all stuff really means?
    Or maybe you want to test WordPress or some other CMS on your PC, before uploading it to a production server? There is one way to “fix” all that – setup a local server directly on your PC. (more…)

  • How to Create an HTML/PHP Contact Form – Radio Buttons, Checkboxes, Dropdown Menus

    How to Create an HTML/PHP Contact Form – Radio Buttons, Checkboxes, Dropdown Menus

    Welcome back to our contact form tutorial series. If you’re not exactly sure why I’m saying “back”, check this link. This is the third episode and in this tutorial we’re gonna learn how to add different types of inputs to the contact form and process that with PHP. It’ll make your contact form look absolutely gem and the features allow you to obtain some extra info from the user. So, you totally need to know how to do that.
    If you followed my two previous contact form tutorials you should have 2 files: contact-form.html and send-mail.php. If not, then you can download them here. Now just open them with your favorite html/php editor. (more…)

  • How to Create an HTML/PHP Contact Form – Processing Form Data with PHP

    Gears - image by Alvaro Heinzen

    In the previous tutorial – creating HTML PHP contact form – we successfully created a basic layout for the contact form. By the way, I’ve also added 2 screencasts to the post for those of you guys who really prefer video content to textual. So, if you wish to watch instead of read, you can do it. In other words you can choose now which way to go. Alternatively, you can both watch and read (or the other way around) just for better understanding. By the way, I’d really appreciate if you subscribe to our YouTube channel and like our videos. πŸ™‚ Now let’s make our contact form actually do something. First off, it’s a good idea to understand how it works.

    Under the hood

    So, what happens after a user hits the “Submit” button of our contact form?

    1)Let’s go step-by-step. The user fills in the form and hits the button: (more…)