Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 18th Jul 2011, 10:21 AM   #1
HyperActive Warrior
 
Join Date: 2011
Posts: 120
Thanks: 2
Thanked 4 Times in 4 Posts
Default
What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

What is the main difference...

Give me your suggestions ...

Thanks,
Ibcontact is offline  
Unread 18th Jul 2011, 03:47 PM   #2
Marketing Evangelist
War Room Member
 
nthmarketing's Avatar
 
Join Date: 2011
Posts: 174
Thanks: 11
Thanked 24 Times in 18 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

ASP is a programmed to run on a windows based server.

PHP is programmed to run on a linux based server

That is the differences in a nutshell.

Fred
nthmarketing is offline  
Unread 18th Jul 2011, 05:19 PM   #3
Flying Waffle
War Room Member
 
Join Date: 2011
Location: Vancouver, Canada
Posts: 806
Thanks: 62
Thanked 208 Times in 158 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

PHP is more idiot-proof, has more user-friendly error messages.

ASP is also a very poisonous snake in other parts of the world

Christian Little is offline  
Unread 18th Jul 2011, 08:28 PM   #4
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 55
Thanks: 2
Thanked 9 Times in 8 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

ASP is the Microsoft page programming language that programmatically generates web pages in HTML. The programming language itself follows the Visual Basic semantics.

PHP is the open source version of the same. It has the C-style semantics for its programming.

It's like saying - what is the difference between the Spanish and English language - speaking a language accomplishes communication - but using its unique semantics and style.

There are proponents and opponents of each of these, as you can probably tell in the forum.
ohio1975 is offline  
Unread 19th Jul 2011, 07:25 AM   #5
Local SEO Consultant
War Room Member
 
Abhishek Kundu's Avatar
 
Join Date: 2011
Location: India
Posts: 72
Thanks: 6
Thanked 11 Times in 10 Posts
Lightbulb
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

hi Ibcontact,

When building any web site, ASP and PHP are the two most popular languages around. Both ASP and PHP are languages used to build Dynamic Web sites that can interact with Databases and exchange information. ASP (Active Server Pages) is from Microsoft and is used with IIS (Internet Information Server) that runs on Microsoft Servers. PHP (PHP: Hypertext Preprocessor) is from Rasmus Lerdorf, who originally designed this parsing language which was later modified by different people. It runs on Unix and Linux servers and it also has an NT server version.
There are a lot of differences between ASP and PHP.


Cost
To run ASP programs one needs IIS installed on a Windows platform server, which is not free. PHP programs run on Linux, which is free. Even the connectivity of the database is expensive in the case of ASP as MS-SQL is a product of Microsoft that needs to be purchased. PHP generally uses MySQL, which is freely available.


Speed
If we compare the speed of ASP and PHP then PHP has an upper hand. PHP code runs faster than ASP. ASP is built on COM based architecture, which is an overhead for the server whereas PHP code runs in its own memory space.


Platform Compatibility
PHP programs can run on various platforms like Linux, Unix, Windows and Solaris whereas ASP is mainly associated with Windows platforms. However, ASP can run on a Linux platform with ASP-Apache installed on the server.


Additional Costs
Many of the tools used in PHP are free of cost and since PHP is open source a lot of code can be found in open source forums. PHP has inbuilt features like ftp, email from a web page or even encryption mechanisms but in ASP such features are not built in and some additional components are required. Therefore an additional cost is incurred for such components.

Base Language

PHP is based on C++ language and the syntax used in PHP is quite similar to C/C++. C/C++ is still considered the best programming language by many programmers and people who love this language would surely feel more comfortable with the syntax of PHP. ASP on the other hand has a more Visual Basic kind of syntax that again is closely related to only Microsoft products. So, it depends on a person-to-person which language he or she is comfortable

Database Connectivity

PHP, being extremely flexible, can connect to various databases, the most popular being MySQL. ASP mainly uses MS-SQL.

Conclusion

Both languages have their advantages specific to users. Some would argue that both the languages have their own importance and depending on the user’s requirements the language and the platform can be chosen. If we talk about developing a discussion board then ASP is equally capable but many feel the best discussion boards are developed in PHP. If a user is looking for some e-commerce application development then many would call ASP the ideal choice. This does not mean that PHP cannot provide e-commerce solutions, only that many people choose ASP.
From my perspective, PHP is an all around better choice than ASP.

hope this helps you to understand the difference between the two.

CLICK HERE>>> FOLLOW ME ON TWITTER <<
Abhishek Kundu is offline  
Unread 20th Jul 2011, 12:27 AM   #6
Warrior Member
 
Join Date: 2011
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Christian Little View Post

PHP is more idiot-proof, has more user-friendly error messages.

ASP is also a very poisonous snake in other parts of the world
LOL, that made my day ha haha... struggling to get up from that one.
wizarddrummer is offline  
Unread 21st Jul 2011, 12:41 AM   #7
Active Warrior
 
Join Date: 2011
Posts: 61
Thanks: 0
Thanked 4 Times in 4 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

As a programmer who uses both languages, here is in a nutshell:

1. Syntax:
ASP is a Microsoft product based on the very ackward Visual Basic syntax
(Example: If / End If).
PHP is a C-Like, very compact and well organized. Some ackwardness.

2. Hosting:
ASP works better on Microsoft servers. There is a possibility to run ASP on
Linux and BSD but I would not recommend, because of the fact that ASP relies
a lot on external components that often come in the form of DLLs that you
need to physically register on the server.
PHP works fine on both environments but a Linux/BSD server will run your
scripts faster than a Windows box because of the overhead (or lack thereof).

3. Out the box solutions:
Both languages are popular but PHP for some reason has more Open License
solutions that you can implement for free or for a donation if you are a
good guy (usually if your project makes you richer, you are supposed to give
back).

4. Toolbox:
PHP can be easily installed with a very large number of tools such as image
manipulation, upload, email, etc...
ASP requires the registration of components to do that and very ackward
object declarations. Most of these components are not free.

5. Speed:
ASP is very slow. Darn slow. Not suitable for traffics of thousands a day.
Many ASP Web sites evolved towards either PHP or Dot Net when they became
popular.
PHP is way faster. Dot Net (ASPx) is now faster but really not popular.

6. Database connectivity:
ASP works better with SQL Server and Access. I have not used it with MySQL,
because it does not make sense.
PHP works very very well with MySQL (PostGreSQL as well, but I know nobody
who uses it). It works fine with SQL Server and Access if you really really
want to use these database systems, but Access is slow. SQL Server is
costly.

7. Simply put:
If you have to use a Microsoft server, then use ASP/SQL Server.
If you have to use a Linux or BSD Server (or anything Unix), then use
PHP/MySQL.



pratap295 is offline  
Unread 21st Jul 2011, 01:09 AM   #8
Web Development Guru
 
phpdev's Avatar
 
Join Date: 2011
Location: Pakistan
Posts: 53
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

Not much. PHP is open source and give lot of prebuilt scripts while development is slow for ASP.

Ali Usman
PHP, MySql, WordPress, API Programming, E-Commerce Site, Payment Integration, Twilio, SMS Marketing, Custom Development, Wordpress, Joomla, Interspire, BigCommerce, Volusion, 3dCart and many more...
sales@bluecomp.net
phpdev is offline  
Unread 22nd Jul 2011, 12:38 AM   #9
Senior Warrior Member
War Room Member
 
Join Date: 2010
Posts: 1,072
Thanks: 339
Thanked 194 Times in 134 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

If you want a slow commercial language, try ASP (Quite frankly, I don't
even know why this is still available - Sadly, it will be around for a long,
long time!). IF you are looking for quickness, then PHP all the way!
Jake Gray is offline  
Unread 22nd Jul 2011, 12:44 AM   #10
Active Warrior
 
Join Date: 2011
Posts: 88
Thanks: 0
Thanked 5 Times in 5 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

ASP is the short term for Active Server Pages, a type of program that works with Microsoft alongside IIS or Internet Information Server. ASP needs a Microsoft Server for the website to work. On the other, PHP or Hypertext Preprocessor, runs using Linux or Unix server. The more updated PHP programs can now run on an NT server.
PHP programs can also run in Windows, Solaris, Unix and Linux while ASP can only work with Window-based platforms. Just recently, ASP can now run on a Linux platform given that there is an ASP-Apache program installed on its server.

oclseo is offline  
Unread 22nd Jul 2011, 12:48 AM   #11
HyperActive Warrior
 
Join Date: 2010
Posts: 152
Thanks: 0
Thanked 4 Times in 4 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

ASP is comes under the .net framework.Where PHP is a open source software.

olakh is offline  
Unread 22nd Jul 2011, 04:49 AM   #12
SEO Project Manager
 
addison.agnote's Avatar
 
Join Date: 2010
Location: Legaspi City, Philippines
Posts: 284
Thanks: 17
Thanked 12 Times in 11 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

Both PHP and ASP are great solutions for most projects that need the server power and capabilities available with them. Both ASP and PHP have several tools and available options with their GUI options.PHP is capable of being installed quickly and easily with many tools server side which can include image manipulation, uploading, email systems and much more. ASP is designed to require registration of components and modules to make each tool possible. ASP will usually require paying for each component upgrade as well.
addison.agnote is offline  
Unread 22nd Jul 2011, 04:50 AM   #13
Warrior Member
 
Join Date: 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: What is difference between ASP and PHP ?
Share on: 
fb share twitter share gplus share more share

ASP is defined as Active Server Pages. ASP runs inside Internet Information Services (IIS). This IIS is a component of Windows. ASP allows us to edit, change or add any content of a web page. It responds to user queries or data given from HTML forms. Any data or databases are accessed easily and the results are returned to the browser. It is helpful in customizing a web page; this feature makes the page more useful for individual users.

PHP is defined as Pre Hypertext Processor. PHP is a server-side, cross platform, HTML scripting language. The syntax of PHP is almost similar to C and Java. The goal of PHP is to allow web developers to write dynamically generated pages quickly.

PHP eliminates the need for numerous small CGI programs by allowing us to place simple scripts directly in HTML files. It also makes easier to manage large web sites by placing all components of a web page in a single HTML file. PHP has a perfect blend of compilation and interpretation. It is a used as general purpose scripting language which is suited for Web development and can be embedded into HTML.

The difference between PHP and ASP is that ASP is a Microsoft product based on visual basic syntax whereas PHP has C and Java based syntax. ASP works better on Microsoft servers.
ASP has the possibility to run on Linux and BSD (Berkeley Software Distribution) which is referred to the particular version of the UNIX operating system. ASP is mostly not recommended for BSD because it relies a lot on external components that often come in the form of Dynamic Linked Library ((DLL) which lists the other pages on the web where one can find additional information) that needs to be physically registered on the server.

PHP works fine on both environments. Linux/BSD server will run the PHP scripts faster than a Windows. Both ASP and PHP languages are popular but PHP is more popular because of its Open License solutions, which can be implemented, free of cost or can be downloaded easily.

The installation of tools such as image manipulation, upload, email, etc. can be easily uploaded in PHP with a very large number of tools whereas ASP requires the registration of components to do that, most of these components are not free.

The speed of ASP is very slow which is not suitable for traffics whereas PHP is faster when compared to ASP. ASP works better with SQL Server and Access. PHP works very well with SQL. If PHP is used with database systems, the connectivity is slow compared to ASP. If there is Microsoft server, then ASP/SQL Server is used. If there is Linux or BSD Server, then PHP is used.

From the above differences between PHP and ASP, it can be concluded that PHP is better in use, especially in syntax, connectivity, and in toolbox, which can be easily installed. As far as the web boards are concerned, there are many awesome products, like PHPBB (Open License), Bulletins (OL), etc.

williamjacob is offline  
Closed Thread


Bookmarks

Tags
asp, difference, php


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 08:55 AM.