derick Mon Apr 1 12:26:30 2002 EDT Modified files: /phpdoc/nl translation.xml /phpdoc/nl/chapters intro.xml Log: - Updateing status
Index: phpdoc/nl/translation.xml diff -u phpdoc/nl/translation.xml:1.2 phpdoc/nl/translation.xml:1.3 --- phpdoc/nl/translation.xml:1.2 Tue Mar 26 10:57:15 2002 +++ phpdoc/nl/translation.xml Mon Apr 1 12:26:30 2002 @@ -14,6 +14,7 @@ </translators> <work-in-progress> + <file name="chapters/intro.xml" person="derick" type="offline" +revision="1.32" date="01/04/2002" /> </work-in-progress> </translation> Index: phpdoc/nl/chapters/intro.xml diff -u phpdoc/nl/chapters/intro.xml:1.9 phpdoc/nl/chapters/intro.xml:1.10 --- phpdoc/nl/chapters/intro.xml:1.9 Tue Mar 26 10:53:33 2002 +++ phpdoc/nl/chapters/intro.xml Mon Apr 1 12:26:30 2002 @@ -1,38 +1,41 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.13 Maintainer: derick Status: ready --> +<!-- EN-Revision: 1.32 Maintainer: derick Status: partial --> <chapter id="introduction"> <title>Introduction</title> <sect1 id="intro-whatis"> <title>Wat is PHP?</title> <simpara> - PHP (officieel "PHP: Hypertext Preprocessor") is een server-side - HTML-embedded scripting taal. + PHP (officieel "PHP: Hypertext Preprocessor") is een veel gebruikte Open + Source general-purpose scripting taal die speciaal is uitgerust voor Web + development, en kan worden embed in HTML. </simpara> <para> - Dat was een simpel antwoord, maar wat wordt er mee bedoeld: + Dat was een simpel antwoord, maar wat wordt er mee bedoeld? Een voorbeeld: </para> <para> <example> <title>Een introducerend voorbeeld</title> <programlisting role="php"> -<html> - <head> - <title>Voorbeeld</title> - </head> - <body> - - <?php - echo "Hallo, ik ben een PHP script!"; - ?> - - </body> -</html> +<![CDATA[ +<html> + <head> + <title>Voorbeeld</title> + </head> + <body> + + <?php + echo "Hallo! Ik ben een PHP script!"; + ?> + + </body> +</html> +]]> </programlisting> </example> </para> <para> - Zie je hoe verschillend dit is van een CGI script geschreven in andere + 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 scrhijven met ingebouwde code die iets doen (in dit geval een stuk tekst laten @@ -51,14 +54,103 @@ er is geen enkele manier dat gebruikers merken dat er ook maar iets gaande is. </para> + <para> + 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 van de enorme lijst functies die PHP + heeft. U kunt eenvoudig instappen, en in een korte tijd simpele scripts + schrijven. + </para> + <para> + Alhoewel PHP is gefocussed overe server-side scripting kunt u er nog veel + meer mee doen. Lees verder, en leer meer in de sectie <link + linkend="intro-whatcando">Wat kan PHP voor u betekenen?</link>. + </para> </sect1> <sect1 id="intro-whatcando"> - <title>Welke mogelijkheden heeft PHP?</title> + <title>Wat kan PHP voor u betekenen?</title> <para> - Als basis kan PHP alles doen wat elk ander CGI script kan doen, - zoals het ophalen van form gegevens, het genereren van dynamisch - pagina's of het sturen en ontvangen van cookies. + Alles. PHP is vooral bedoeld voor server-sie scripting, dus u kunt alles + doen wat elk ander CGI script kan doen, zoals het ophalen van form + gegevens, het genereren van dynamisch pagina's of het sturen en ontvangen + van cookies. Maar PHP kan veel meer betekenen. + </para> + <para> + There are three main fields where PHP scripts are used. + <itemizedlist> + <listitem> + <simpara> + Server-side scripting. This is the most traditional + and main target field for PHP. You need three things + to make this work. The PHP parser (CGI or server + module), a webserver and a web browser. You need to + run the webserver, with a connected PHP installation. + You can access the PHP program output with a web browser, + viewing the PHP page through the server. See the + <link linkend="installation">installation instructions</link> + section for more information. + </simpara> + </listitem> + <listitem> + <simpara> + Command line scripting. You can make a PHP script + to run it without any server or browser. + You only need the PHP parser to use it this way. + This type of usage is ideal for scripts regularly + executed using cron (a task scheduler on Linux and Unix + systems) or a task scheduler on Windows. These scripts + can also be used for simple text processing tasks. See the + section about <link linkend="commandline">Command line + usage of PHP</link> for more information. + </simpara> + </listitem> + <listitem> + <simpara> + Writing client-side GUI applications. PHP is probably + not the very best language to write windowing + applications, but if you know PHP very well, and + would like to use some advanced PHP features in + your client-side applications you can also use + PHP-GTK to write such programs. You also have the + ability to write cross-platform applications this way. + PHP-GTK is an extension to PHP, not available in + the main distribution. If you are interested + in PHP-GTK, visit <ulink url="&url.php.gtk;">it's + own website</ulink>. + </simpara> + </listitem> + </itemizedlist> + </para> + <para> + PHP can be used on all major operating systems, including + Linux, many Unix variants (including HP-UX, Solaris and OpenBSD), + Microsoft Windows, Mac OS X, RISC OS, and probably others. + PHP has also support for most of the web servers today. This + includes Apache, Microsoft Internet Information Server, + Personal Web Server, Netscape and iPlanet servers, Oreilly + Website Pro server, Caudium, Xitami, OmniHTTPd, and many + others. For the majority of the servers PHP has a module, + for the others supporting the CGI standard, PHP can work + as a CGI processor. + </para> + <para> + So with PHP, you have the freedom of choosing an operating + system and a web server. Furthermore, you also have the choice + of using procedural programming or object oriented + programming, or a mixture of them. Although not every + standard OOP feature is realized in the current version + of PHP, many code libraries and large applications (including the + PEAR library) are written only using OOP code. + </para> + <para> + With PHP you are not limited to output HTML. PHP's abilities + includes outputting images, PDF files and even Flash movies + (using libswf and Ming) generated on the fly. You can also + output easily any text, such as XHTML and any other XML file. + PHP can autogenerate these files, and save them in the file + system, instead of printing it out, forming a server-side + cache for your dynamic content. </para> <para> Waarschijnlijk is de meest sterkste kant van PHP dat het ondersteuning @@ -90,22 +182,50 @@ <member>Unix dbm</member> </simplelist> </blockquote> + We also have a DBX database abstraction extension allowing you + to transparently use any database supported by that extension. + Additionally PHP supports ODBC, the Open Database Connection + standard, so you can connect to any other database supporting + this world standard. + </para> + <para> + PHP also has support for talking to other services using protocols + such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (on Windows) and + countless others. You can also open raw network sockets and + interact using any other protocol. PHP has support for the WDDX + complex data exchange between virtually all Web programming + languages. Talking about interconnection, PHP has support for + instantiation of Java objects and using them transparently + as PHP objects. You can also use our CORBA extension to + access remote objects. + </para> + <para> + PHP has extremely useful text processing features, from the + POSIX Extended or Perl regular expressions to parsing XML + documents. For parsing and accessing XML documents, we + support the SAX and DOM standards. You can use our XSLT + extension to transform XML documents. + </para> + <para> + While using PHP in the ecommerce field, you'll find + the Cybercash payment, CyberMUT, VeriSign Payflow + Pro and CCVS functions useful for your online payment + programs. + </para> + <para> + At last but not least, we have many other interesting + extensions, the mnoGoSearch search engine functions, + the IRC Gateway functions, many compression utilities + (gzip, bz2), calendar conversion, translation... + </para> + <para> + As you can see this page is not enough to list all + the features and benefits PHP can offer. Read on in + the sections about <link linkend="installation">installing + PHP</link>, and see the <link linkend="funcref">function + reference</link> part for explanation of the extensions + mentioned here. </para> - <para> - PHP bied ook ondersteuning voor het communiceren met andere services - als IMAP, SNMP, NNTP, POP3, HTTP en talloze anderen. Het is ook mogelijk - om netwerk sockets te gebruiken en te communiceren met andere protocollen. - </para> -<!-- - <figure> - <title>Internal Structure</title> - <graphic fileref="../images/php3_internal_structure.gif"/> - </figure> - <figure> - <title>Request Scheme</title> - <graphic fileref="../images/php3_request_scheme.gif"/> - </figure> ---> </sect1> <sect1 id="intro-history">