Modified: phpdoc/da/trunk/chapters/intro.xml =================================================================== --- phpdoc/da/trunk/chapters/intro.xml 2011-10-03 11:27:44 UTC (rev 317646) +++ phpdoc/da/trunk/chapters/intro.xml 2011-10-03 11:28:13 UTC (rev 317647) @@ -1,256 +1,256 @@ - - - - - - Introdukion - -
- Hvad er PHP? - - PHP (rekursive akronym for PHP: Hypertext - Preprocessor) er et udbredt open source scripting sprog, der - er specielt velegnet til web udvikling og kan bygget sammen med HTML. - - - Perfekt! Mene hvad betyder dette? Her er et simpelt eksempel: - - - - Et introduktions eksempel - - - - - Eksempel - - - - - - - -]]> - - - - - Istedet for at bruge mange kommandoer til at udskrive HTML (som ofte - er set i C eller Perl), så kan PHP sider indeholde HTML kode direkte - i scriptet (i dette tilfælde, udskriver scriptet "Hej, Jeg er et PHP - Script!"). PHP koden er indkapslet i nogle specielle start og slut processor - instruktioner <?php og ?> der - tillader dig at hoppe ind og ud af PHP. - - - Det der adskiller PHP fra noget som klient-side baseret JavaScript - er, at koden er eksekveret på serveren, som genererer HTML koden hvilket - sendes til brugeren. Brugeren vil modtage resultatet af det kørende - script, men vil ikke vide hvad den bagvedliggende kode var. Du kan endda - konfigurere din webserver til behandle alle dine HTML filer med PHP, og - så er der virkelig ingen måde, at brugeren kan fortælle, hvad du har i - ærmet. - - - De bedste ting ved at bruge PHP er, at det er ekstremt simpelt for - en nybegynder, men tilbyder mange advancerede funktioner til en - professional programmør. Vær ikke bange for at læse den lange liste - over PHP's funktioner. Du kan hurtigt hoppe ind, og på kort tid begynde - at skrive dine helt egne PHP scripts. - - - Selvom PHP's udvikling er fokuseret på server-side scripting, så kan du - gøre meget mere med det. Læs vidre, og se mere i - Hvad kan PHP? sektionen, - eller gå direkte til introduktions - guiden hvis du kun er interesseret i web udvikling. - -
- -
- Hvad kan PHP? - - Altid. PHP er primært fokuseret på server-side scripting, så du kan - gøre hvad som helst, som hvert andet CGI program kan gøre, såsom at - samle formular data, generere dynamiske side indholde, eller sende - og modtage cookies. Men PHP kan gøre så meget mere. - - - Disse er de tre hoved områder hvor PHP scripts er brugt. - - - - Server-side scripting. Dette er den mest traditionelle - og det vigtigste mål inden for PHP. Du har brug for tre ting - for at få det til at virke. PHP parseren (CGI eller server - modul), en webserver og en webbrowser. Du er nød til at køre - webserveren med en forbundet PHP installation. Du kan få adgang - til PHP programmets output med en webbrowser, som er visningen - af PHP siden gennem serveren. Alle disse kan køre på din computer, - hvis du bare eksperimenterer med PHP programmering. Se - installation instruktioner for mere - information. - - - - - 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 (on *nix or Linux) or Task Scheduler (on - Windows). These scripts can also be used for simple text - processing tasks. See the section about - Command line usage of PHP - for more information. - - - - - Writing desktop applications. PHP is probably - not the very best language to create a desktop - application with a graphical user interface, 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 its - own website. - - - - - - 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. - - - 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 implemented in PHP 4, - many code libraries and large applications (including - the PEAR library) are written only using OOP code. PHP 5 fixes the - OOP related weaknesses of PHP 4, and introduces a complete object - model. - - - 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. - - - One of the strongest and most significant features in PHP is its - support for a wide range of databases. Writing a database-enabled - web page is incredibly simple. The following databases are currently - supported: -
- - Adabas D - dBase - Empress - FilePro (read-only) - Hyperwave - IBM DB2 - Informix - Ingres - InterBase - FrontBase - mSQL - Direct MS-SQL - MySQL - ODBC - Oracle (OCI7 and OCI8) - Ovrimos - PostgreSQL - SQLite - Solid - Sybase - Velocis - Unix dbm - -
- We also have a database abstraction extension (named PDO) 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. -
- - 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. - - - 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, PHP 4 - supports the SAX and DOM standards, and you can also use the - XSLT extension to transform XML documents. PHP 5 standardizes - all the XML extensions on the solid base of libxml2 and extends - the feature set adding SimpleXML and XMLReader support. - - - 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, zip), calendar conversion, translation... - - - 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 installing - PHP, and see the function - reference part for explanation of the extensions - mentioned here. - -
- -
- - + + + + + + Introdukion + +
+ Hvad er PHP? + + PHP (rekursive akronym for PHP: Hypertext + Preprocessor) er et udbredt open source scripting sprog, der + er specielt velegnet til web udvikling og kan bygget sammen med HTML. + + + Perfekt! Mene hvad betyder dette? Her er et simpelt eksempel: + + + + Et introduktions eksempel + + + + + Eksempel + + + + + + + +]]> + + + + + Istedet for at bruge mange kommandoer til at udskrive HTML (som ofte + er set i C eller Perl), så kan PHP sider indeholde HTML kode direkte + i scriptet (i dette tilfælde, udskriver scriptet "Hej, Jeg er et PHP + Script!"). PHP koden er indkapslet i nogle specielle start og slut processor + instruktioner <?php og ?> der + tillader dig at hoppe ind og ud af PHP. + + + Det der adskiller PHP fra noget som klient-side baseret JavaScript + er, at koden er eksekveret på serveren, som genererer HTML koden hvilket + sendes til brugeren. Brugeren vil modtage resultatet af det kørende + script, men vil ikke vide hvad den bagvedliggende kode var. Du kan endda + konfigurere din webserver til behandle alle dine HTML filer med PHP, og + så er der virkelig ingen måde, at brugeren kan fortælle, hvad du har i + ærmet. + + + De bedste ting ved at bruge PHP er, at det er ekstremt simpelt for + en nybegynder, men tilbyder mange advancerede funktioner til en + professional programmør. Vær ikke bange for at læse den lange liste + over PHP's funktioner. Du kan hurtigt hoppe ind, og på kort tid begynde + at skrive dine helt egne PHP scripts. + + + Selvom PHP's udvikling er fokuseret på server-side scripting, så kan du + gøre meget mere med det. Læs vidre, og se mere i + Hvad kan PHP? sektionen, + eller gå direkte til introduktions + guiden hvis du kun er interesseret i web udvikling. + +
+ +
+ Hvad kan PHP? + + Altid. PHP er primært fokuseret på server-side scripting, så du kan + gøre hvad som helst, som hvert andet CGI program kan gøre, såsom at + samle formular data, generere dynamiske side indholde, eller sende + og modtage cookies. Men PHP kan gøre så meget mere. + + + Disse er de tre hoved områder hvor PHP scripts er brugt. + + + + Server-side scripting. Dette er den mest traditionelle + og det vigtigste mål inden for PHP. Du har brug for tre ting + for at få det til at virke. PHP parseren (CGI eller server + modul), en webserver og en webbrowser. Du er nød til at køre + webserveren med en forbundet PHP installation. Du kan få adgang + til PHP programmets output med en webbrowser, som er visningen + af PHP siden gennem serveren. Alle disse kan køre på din computer, + hvis du bare eksperimenterer med PHP programmering. Se + installation instruktioner for mere + information. + + + + + 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 (on *nix or Linux) or Task Scheduler (on + Windows). These scripts can also be used for simple text + processing tasks. See the section about + Command line usage of PHP + for more information. + + + + + Writing desktop applications. PHP is probably + not the very best language to create a desktop + application with a graphical user interface, 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 its + own website. + + + + + + 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. + + + 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 implemented in PHP 4, + many code libraries and large applications (including + the PEAR library) are written only using OOP code. PHP 5 fixes the + OOP related weaknesses of PHP 4, and introduces a complete object + model. + + + 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. + + + One of the strongest and most significant features in PHP is its + support for a wide range of databases. Writing a database-enabled + web page is incredibly simple. The following databases are currently + supported: +
+ + Adabas D + dBase + Empress + FilePro (read-only) + Hyperwave + IBM DB2 + Informix + Ingres + InterBase + FrontBase + mSQL + Direct MS-SQL + MySQL + ODBC + Oracle (OCI7 and OCI8) + Ovrimos + PostgreSQL + SQLite + Solid + Sybase + Velocis + Unix dbm + +
+ We also have a database abstraction extension (named PDO) 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. +
+ + 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. + + + 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, PHP 4 + supports the SAX and DOM standards, and you can also use the + XSLT extension to transform XML documents. PHP 5 standardizes + all the XML extensions on the solid base of libxml2 and extends + the feature set adding SimpleXML and XMLReader support. + + + 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, zip), calendar conversion, translation... + + + 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 installing + PHP, and see the function + reference part for explanation of the extensions + mentioned here. + +
+ +
+ + Property changes on: phpdoc/da/trunk/chapters/intro.xml ___________________________________________________________________ Added: svn:eol-style + native