Search results

  1. RHochstenbach

    HWF Facebook Page

    We have an official Facebook page! You can check it out and subscribe using the link below :) http://www.facebook.com/hardwareforums
  2. RHochstenbach

    PHP Introduction to Classes

    PHP 5 has introduced a new way of programming, called Object-Oriented Programming (OOP) which is also used in most system programming languages. OOP lets you work with reusable objects which makes your code cleaner and easier to read. This is especially useful with big projects. PHP uses a new...
  3. RHochstenbach

    HWF topics poll

    Me and Sniper are working on tweaking the topics on HWF a bit. Since this is about our members, we would ask you to fill out this poll. Which topics on HWF should be given more attention? Or is there any other topic that would be great for having on HWF? Are there any topics that should be...
  4. RHochstenbach

    Why I don't use the Mac App Store

    I've written a blog post to show my opinion about the new Mac App Store. Link: http://www.royhochstenbach.com/why-i-dont-use-the-mac-app-store/ Original message:
  5. RHochstenbach

    QuickDump PHP Tool

    Hi guys, I've started a new project called "QuickDump". It's a PHP application that easily allows you to backup your databases. It's currently in Beta, so i'd appreciate it if you guys would like to test it (if possible) and give me some feedback ;)...
  6. RHochstenbach

    PGP Keys explained

    PGP keys explained One of the most secure ways to encrypt your data is by using PGP keys. On the other hand, it can also be used to verify the identity of an individual. It has been designed for E-Mail messages, but it can also be used for files. This topic has been covered on many websites...
  7. RHochstenbach

    Mounting an SMB share in Linux

    If you have a Windows system in your network with shares or an NAS with an SMB Server installed, you can mount it using Linux using CIFS. I'm going to demonstrate how to do this using Debian and Ubuntu, but similar steps should also work on other distributions. For the ease of use, make sure...
  8. RHochstenbach

    PHP functions

    Let's say you want to make a page that converts US Dollars to Euros. 1 US Dollar is worth 0.723 Euros, so you have to multiple the amount of Dollars by 0.723. If you make a list of 1-5 Dollars and their value when converted to Euros inside a table, you can do something like this: <table> <tr>...
  9. RHochstenbach

    PHP alternative to Brackets

    If you have a lot of IF statements and loops nested into each other, you might find it confusing to see which bracket belongs to which instruction. Something like this: if(1 == 1) { while(1 == 1) { echo "1"; if(2==2) { while(2==2) { echo "2"; } } } } You can replace the bracket with the word...
  10. RHochstenbach

    Inserting data into MySQL using PHP

    Now we're going to add our first entry into the database. First of all, make sure you have either the Database connection code, or have included the path to the PHP file containing this code. Otherwise your script can't connect to your database. To add an entry to the table 'addresses' in your...
  11. RHochstenbach

    Preparing MySQL for the PHP tutorials

    I would strongly recommend every MySQL user to install phpmyadmin on your server for easily managing your database. You can create a database, create users, assign user rights to your databases and add tables to your databases. In this example, create a database called 'tutorial'. Now create a...
  12. RHochstenbach

    PHP POST & GET

    POST A very essential feature of PHP is the ability to collect the input from HTML forms. As you might know, you start with an HTML form with something like this: <form method="post" action="form.php"> 'post' means it passes each field to a PHP variable called $_POST as an array. The name of...
  13. RHochstenbach

    PHP arrays

    From a previous lessen you've learnt about PHP variables. Each variable starts with a dollar sign ( $ ). Each array must have a unique name. But what would you do if you want to assign multiple unique values to one variable? We use something called an Array. Let's say we have a fishing club and...
  14. RHochstenbach

    PHP loops

    One of the reasons why PHP is used with HTML code is its ability to generate output. One of these features is called a 'loop'. Basically a loop repeats a piece of code as long as a condition is met. I will now demonstrate this. WHILE loop A while loop repeats itself as long as a condition is...
  15. RHochstenbach

    PHP commenting guide

    Just like every programming language, you might want to add comments to provide information about your code to others or to yourself as a reminder. In HTML we can do it like this: <!-- This is a comment --> PHP uses a double slash ( // ) For a single line comment. For a multi-line comment...
  16. RHochstenbach

    PHP IF statements

    Let's say you want PHP to perform different actions depending on a situation. For example, we set a variable called 'name' with the value 'John Doe'. $name = "John Doe"; Now we want to have PHP perform a different action depending on the value of the 'name' variable. Let's say I want PHP to...
  17. RHochstenbach

    Working with PHP variables

    PHP and most other programming languages use variables to store information like text. In almost any case you are going to use this, so it's a very important subject. In this example I'm going to create a variable called 'name' and store the value 'John Doe' in it. This is very easy to do...
  18. RHochstenbach

    Writing your first PHP code

    Ok, let's get started with PHP. We're going to output some text using PHP. 1. Create an HTML document. 2. Inside the <body> - tag, type the PHP opening tag <?php 3. While this tag is open, we can only type PHP code. We'll write the sentence "hello world": echo "Hello World!"; 4. Type the PHP...
  19. RHochstenbach

    Introduction to PHP

    PHP is a so-called server-side programming language. This basically means that the server renders the page instead of the web browser. This has many advantages, including (but not limited to) the following: Perform calculations Generate information Connect and exchange information with a...
  20. RHochstenbach

    Learning PHP and MySQL

    Here's a collection of useful threads about learning PHP: PHP Introduction to PHP Writing your first PHP code Working with PHP variables IF statements Commenting guide Arrays Loops Alternative to brackets POST & GET Functions PHP - Beginner Tutorial Object-Oriented Programming Introduction...
Back
Top