ASP ist eigentlich keine Sprache an sich, es ist ein Akronym für Active
Server Pages, die eigentlichen Sprachen in denen ASP programmiert wird sind
Visual Basic Script oder JScript. Der größte Nachteil von ASP ist, dass
es ein proprietäres System ist und nativ nur auf Microsofts
Internet Information Server (IIS) verwendet werden kann. Dies limitiert ASP auf
Win32 basierende Server. Es gibt einige Projekte, die die Möglichkeit bieten,
ASP unter anderen Umgebungen zu verwenden:
InstantASP
von Halcyon (kommerziell),
Chili!Soft ASP von
Chili!Soft
(kommerziell) und OpenASP von
ActiveScripting.org (kostenlos). ASP wird nachgesagt, dass
es eine langsamere und schwerfälligere Sprache als PHP ist, instabiler
noch dazu. Eines der Vorteile von ASP ist, dass es, weil VBScript verwendet wird,
relativ leicht zu erlernen ist, wenn Sie bereits Visual Basic programmieren
können. Auch ist die ASP-Unterstützung im IIS Server standardmäßig vorhanden,
was es einfach macht, ASP zum laufen zu kriegen. Der Umfang von ASP ist
allerdings sehr limitiert. Wenn Sie also "fortgeschrittene" Features wie die
Verbindung zu FTP-Servern nutzen wollen, müssen Sie kommerzielle Komponenten
hinzukaufen.
2. Gibt es ein Programm, was ASP in PHP konvertieren kann?
Ja, asp2php wird
meistens als Antwort genannt.
PHP is commonly said to be faster and more efficient for complex
programming tasks and trying out new ideas. PHP is generally referred
to as more stable and less resource intensive as well. Cold Fusion
has better error handling, database abstraction and date parsing
although database abstraction is addressed in PHP 4. Another
thing that is listed as one of Cold Fusion's strengths is its excellent
search engine, but it has been mentioned that a search engine is not
something that should be included in a web scripting language. PHP
runs on almost every platform there is; Cold Fusion is only available
on Win32, Solaris, Linux and HP/UX. Cold Fusion has a good IDE
and is generally easier to get started with, whereas PHP initially
requires more programming knowledge. Cold Fusion is designed with
non-programmers in mind, while PHP is focused on programmers.
A great summary by Michael J Sheldon on this topic has
been posted to the PHP mailing list. A copy can be found
here.
The biggest advantage of PHP over Perl is that PHP was designed for
scripting for the web where Perl was designed to do a lot more and can
because of this get very complicated. The flexibility / complexity
of Perl makes it easier to write code that another author / coder
has a hard time reading. PHP has a less confusing and stricter format
without losing flexibility. PHP is easier to integrate into existing
HTML than Perl. PHP has pretty much all the 'good' functionality of
Perl: constructs, syntax and so on, without making it as complicated
as Perl can be. Perl is a very tried and true language, it's been
around since the late eighties, but PHP is maturing very quickly.