Search results

  1. RHochstenbach

    What's the difference between Vista and windows 7?

    Windows 7 has better performance and stability than Vista. Besides that, some improvements. These include (but not limited to): Gadgets are now optional and placed on the desktop instead of the gadget bar, new task bar which groups windows together based on the program (which annoys me...
  2. RHochstenbach

    Testing on new server!

    Nice performance, it really shows :)
  3. 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...
  4. 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...
  5. RHochstenbach

    Virtualization

    Depending on your budget, I can advise to use either VirtualBox (free for non-commercial use, limited features) or VMWARE Workstation (not free, many features). Just make sure you have enough RAM in your system.
  6. RHochstenbach

    Girl trouble...

    And that's the reason why you're writing that in past tense. Basically it's better to find 1 girl that you really like and have a good time with, than having someone else every week or so ;)
  7. RHochstenbach

    AT&T to buy T-mobile for $39 Billion. How?

    According to Wikipedia they have a total revenue of 124 billion and an income of 19 billion. Basically they have that money back at the end of the year ;) http://en.wikipedia.org/wiki/AT%26T
  8. RHochstenbach

    Relax

    That's amazing :) These are two of my favorites:
  9. 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>...
  10. RHochstenbach

    PHP alternative to Brackets

    It's always the best way using the 'official' method with brackets, because these are more compatible with the PHP versions.
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Back
Top