hallo,
ok eerst ef, gordijnstok sorry dat ik zo dom uitviel enzo, laten we hier normaal verder gaan, ok?
de laatste tijd of tijden is er een super combinatie van database en scripttaal, deze 2 zijn samen ook constant uitgeroepen tot snelste combinatie. en die combinatie is PHP+mysql.
de mogelijkheden van PHP zijn zeer zeker NIET minder dan die van coldfusion (of ASP). maar als je gaat kijken naar wat je nou echt NODIG hebt hebben ze alle 3 even veel mogelijkheden.
Syntax van beide? de een vind dit, de ander vind dat. hierbij ligt het er net aan wat iemand fijner vind, waar iemand zelf de voorkeur aan geeft, dit kan bepaalt worden doordat hij/zij misschien al vanaf begin af aan met php of CF bezig is.
Coldfusion/ASP moet je voor betalen, het is typisch iets wat voor microsoft sites gebruikt word. meer dan 60% (misschien nog wel meer) van design bedrijven gebruiken GEEN coldfusion. waarom? het kost geld, geen LOPENDE ontwikkelingen. wat blijft er over? ASP en PHP zijn dan de 2 sterkste die overblijven. PHP heeft meteen al wat puntjes meer vanwege haar (recente gebeurtenis) nauwe samenwerking met de database Mysql.
ten 2e:
PHP is veel sneller dan ASP vanwegen de manieren van intpluisen en uitvoeren van scriptcodes, dat doet php veel sneller.
hier is een stukkie text met redenen verzamelt door iemand om van ASP over te stappen naar PHP (in het engels):
************************************
Active Server Pages (ASP) is Microsoft's technology for displaying dynamic web pages. ASP supports multiple programming languages; the most commonly used is VBScript. PHP is the open source alternative to ASP that runs on multiple operating systems, incuding Linux and Windows.
I think ASP is a good and useful technology, but in the long run I believe PHP will prove superior -- both technically and in popularity. There are seven reasons why I think so:
1. Speed Speed Speed
The first time I ran a PHP script, I said to myself, "this is a Ferrari, so fast." I was using a slow 166 Mhz PC, but you can get a lot of fast mileage off PHP.
ASP will probably never be as fast as PHP. ASP is built on a COM-based architecture. When an ASP programmer uses VBScript, he is running a COM object. When he writes to the client, he's calling the Response COM object's Write method. When he accesses a database, he uses another COM object to do so. When he accesses the file system, another COM object is called. All this COM overhead adds up and slows things down.
In PHP modules, everything runs in PHP's memory space. This means that PHP code will run faster because there is no overhead of communicating with different COM objects in different processes.
The following benchmark, where we execute a Select statement 40 times on Microsoft SQL Server 7 using PHP's MSSQL7 extension, PHP's ODBC extension and COM, will show you what I mean:
PHP Querying MSSQL7 Seconds (lower is better)
Using MSSQL extension 01.88
Using ODBC extension 09.54
Using ODBC via COM (ADO) 17.28
Using OLEDB via COM 06.19
Benchmark methodology
When we access the database using PHP's ODBC extension, it's 9.54 secs. Using the COM interface to connect to ODBC adds a 80% overhead (17.28 secs) to ODBC.
OLEDB is Microsoft's high speed COM technology for accessing databases. It is faster than ODBC, but when we use the PHP MSSQL extension we get a 200% increase in performance. So just tell a ASP programmer: No COM more speed.
Of course there is some risk that a PHP module crash could affect multiple web pages. But remember we are still in the early days of the high speed Zend engine. Today we are still ironing out the kinks from the module based PHP engine.
And this is where the benefits of the Open Source Model kick in. The constant peer-review and the world-wide test team allows the PHP team to create a production quality PHP engine much faster than any closed source company could.
2. Superior Memory Management
In ASP's model (in IIS 4), if an ASP file header.asp is included into 20 web pages, then 20 compiled copies of that header.asp are maintained in memory. IIS 5 has implemented an improved memory management model, but only programmers who are using Windows 2000 can upgrade because it is not backward compatible with IIS 4, and Windows NT 4.0 cannot run IIS 5. This means that most IIS web servers are still stuck with the inferior memory management model.
This is unlike PHP, which only loads include files that are required.
3. No Hidden Costs with PHP
One of the things I hate most when buying anything is hidden costs. You buy a car and you have to replace the engine. You buy a house and have to retile the leaking roof.
Well, buying ASP is a bit like that. Need encryption -- buy ASPEncrypt. Need email management -- buy ServerObject's QMail. Need file uploading -- buy Software Artisans SA-FileUp.
All this is built into PHP for free.
4. MySQL makes it cooler.
PHP's integration with MySQL is simply fantastic. There are lots of PHP tools to manage and maintain MySQL databases. The feature set is complete compared to other databases. We have very useful functions like mysql_insert_id and mysql_affected_rows which are not available for other database products.
ASP and PHP are both very good solutions for mid-range web sites. What makes PHP stand out is the tight integration with MySQL. MySQL is also tuned for mid-range web-sites, where selecting and pumping loads of data is more important than transaction support. This transaction support allows the programmer to synchronise updates on multiple tables; which the majority of web sites do not require.
When we compare databases Microsoft Access is much slower than MySQL. SQL Server 7 and Oracle are nearly as fast, but much too expensive if you don't need the transaction support.
5. Closer to Java/C++ Style of Programming
OK, the benefits of this statement is an opinion.
I agree that you won't convince a hard-core Visual Basic programmer to switch to PHP just because PHP has C or Java style for-loops, curly-braces and ->.
But you could convince someone who likes C++ or Java that PHP is a better or easier language to learn than VBScript.
PHP also has good support for modular programming in classes. Usage of classes is still rare in VBScript because of its heritage. PHP's common heritage with Java and C++ ensures a large body of programmers who uses classes all the time.
*****************************************
Uit dit sukkie text hierboven kun je HEEL veel punten uithalen, maar dat mag je zelf doen.
dit hierboven is nog maar een klein gedeelte van waarom PHP kortom het internet gaan heersen.
ofcourse blijft ASP, en BLIJFT coldfusion, maar zoals ik zei, het is typisch iets voor microsoft. wat is hiermee bedoel is het volgende: bedrijfen die contracten hebben met bedrijven zoals microsoft, of DELL etc. en die komen via dat op het internet, word ASP gebruikt ( of coldfusion ).
en nou houd ik op..
grtz,
AHL