PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Wat kan PHP voor u betekenen?> <Om te beginnen
Last updated: Sun, 25 Nov 2007

view this page in

Introductie

Table of Contents

Wat is PHP?

PHP (officieel "PHP: Hypertext Preprocessor") is een veel gebruikte Open Source general-purpose scripting taal die speciaal is uitgerust voor Web development en kan in HTML worden ingekapseld.

Dat was een simpel antwoord, maar wat wordt er mee bedoeld? Een voorbeeld:

Example#1 Een introducerend voorbeeld

<html>
    <head>
        <title>Voorbeeld</title>
    </head>
    <body>

        <?php 
        
echo "Hallo! Ik ben een PHP script!"
        
?>

    </body>
</html>

Zie je hoe verschillend dit is van een script geschreven in andere talen zoals Perl of C ? In plaats van een programma te schrijven met veel commando's om HTML te laten zien, kun je een HTML script schrijven met ingebouwde code die iets doen (in dit geval een stuk tekst laten zien). De PHP code is omgeven door speciale start en stop tags die het mogelijk maken tussen normale mode en PHP mode over te stappen.

Wat PHP onderscheidt van client-side talen zoals Javascript is dat de code op de server wordt uitgevoerd. Als een soortgelijk script wordt gebruikt zoals het hier boven staande voorbeeld, zal de browser de resultaten van het script ontvangen en zal deze op geen enkele manier kunnen achterhalen wat de onderliggende code is. Het is zelfs mogelijk om alle HTML bestanden op jouw website te laten parsen door PHP zonder dat je gebruikers door hebben dat dit gebeurd.

Een van de mooiste dingen van PHP is dat het relatief eenvoudig is voor een beginner, maar dat het nog steeds krachtig is voor de professionele gebruiker. U hoeft niet bang te zijn voor de enorme lijst functies die PHP heeft. U kunt eenvoudig instappen, en in een korte tijd simpele scripts schrijven.

Alhoewel PHP vooral gebruikt wordt voor Webdevelopment kan je er nog veel meer mee doen. Lees verder, en leer meer in de sectie Wat kan PHP voor u betekenen?.



Wat kan PHP voor u betekenen?> <Om te beginnen
Last updated: Sun, 25 Nov 2007
 
add a note add a note User Contributed Notes
Introductie
kissfsf at yahoo dot com
27-Aug-2008 03:09
If you want more open source project of php, visit the following link which also has many free software of other program language like python,java,perl .etc.

http://www.fs-dir.com/language/5/

It's great!
nostamar $AT$ g mail
30-Jan-2008 12:06
here is a "server-php >> html >> browser" process illustration:
http://www.lastown.com/forum/viewtopic.php?t=533

it shows the basic steps; first php code is parsed at server into html; then sent to browser, that understands html tags and renders them to the display the webpage, there's also some quick overview about the process.. worths taking a look at
winks716
19-Aug-2007 02:48
before html runs to show a webpage, php code runs first on web server.

so, when there lines as follow:

<table>
<tr>
<td>
  <?php
   
echo "php runs first!";
 
?>
</td>
</tr>
</table>

the first step is to run php code, we get:

<table>
<tr>
<td>
php runs first
</td>
</tr>
</table>

then, code is sent to browser, and we see somthing~
george dot langley at shaw dot ca
19-Jul-2007 12:02
"the code is executed on the server"

This is an important concept for the first-time PHP programmer to understand, so that when you get into string formatting later on, you understand the difference between formatting the on-screen content (as parsed by your browser) and formatting the HTML code (as returned by the server).
For example "/n" starts a new line in the HTML code, and its results are only seen if you look at the "source HTML". It is NOT the same as <br>!

Wat kan PHP voor u betekenen?> <Om te beginnen
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites