 |
Search
|
|
|
|
 |

11-14-2007, 05:01 AM
|
|
The Himalayan Warrior
|
|
Join Date: Oct 2006
Location: India
Posts: 50
|
|
Drawback of php
Hey,
I was wondering if there is/are any drawbacks/limitations of php over other web languages?
Thanx
|

11-14-2007, 09:04 AM
|
 |
Mooderater
|
|
Join Date: Feb 2006
Location: Ohio
Posts: 579
|
|
None that I can think of. In fact, I have found most things easier in PHP, but that could be due in part to my programming language choices in the past.
DB connections are about the same complexity as ASP, perhaps 1 less line of code. Also the syntax is more like traditional programming languages, which makes it easier for me to write and read/understand later. Of course, if you have no experience in real programming languages, that can be a significant hindrance.
One very important thing that I love about PHP is that file-upload handling is mind-blowingly simple, as compared to the massive headaches you can endure doing the same in ASP. Just a couple lines of code to detect that an upload exists, move the file, rename it, change file permissions, etc.
PHP is also more cross-platform (on the server side, of course; the clients don't care). Sure, you can get Chili!Soft software to run ASP apps on Linux, but it's expensive (last time I checked) whereas a PHP interpreter and Apache are freely available for almost any OS you can think of. And extremely complex PHP Apps can be run on those different platforms with little to no code modification (usually none).
Just so I don't sound like an Open Source nut (I usually am  ) I must add that I use ASP almost as frequently as PHP, and while I prefer PHP, there is not much about ASP that I could improve upon either. They are both very good scripting environments, and I like using them both, at different times.
|

11-14-2007, 10:10 AM
|
|
The Himalayan Warrior
|
|
Join Date: Oct 2006
Location: India
Posts: 50
|
|
Quote:
|
Originally Posted by Nook Schreier
None that I can think of. In fact, I have found most things easier in PHP, but that could be due in part to my programming language choices in the past.
DB connections are about the same complexity as ASP, perhaps 1 less line of code. Also the syntax is more like traditional programming languages, which makes it easier for me to write and read/understand later. Of course, if you have no experience in real programming languages, that can be a significant hindrance.
One very important thing that I love about PHP is that file-upload handling is mind-blowingly simple, as compared to the massive headaches you can endure doing the same in ASP. Just a couple lines of code to detect that an upload exists, move the file, rename it, change file permissions, etc.
PHP is also more cross-platform (on the server side, of course; the clients don't care). Sure, you can get Chili!Soft software to run ASP apps on Linux, but it's expensive (last time I checked) whereas a PHP interpreter and Apache are freely available for almost any OS you can think of. And extremely complex PHP Apps can be run on those different platforms with little to no code modification (usually none).
Just so I don't sound like an Open Source nut (I usually am  ) I must add that I use ASP almost as frequently as PHP, and while I prefer PHP, there is not much about ASP that I could improve upon either. They are both very good scripting environments, and I like using them both, at different times.
|
Since you are a ASP coder as well, so herez a question or you -
Does classic asp support oop? (not talking about asp.net)
Thanx
|

11-14-2007, 12:23 PM
|
 |
Mooderater
|
|
Join Date: Feb 2006
Location: Ohio
Posts: 579
|
|
|
Strictly speaking, no it does not. Some people claim it is an OOP language simply because there are server objects that have methods and properties: but those things by themselves do not make the language object oriented, it just means that it can use some objects, IMO.
ASP.net does support OO-style programming, supposedly (I say "supposedly" only because I have never done it myself). Judging by the way you phrased the question, though, it seems that you already know this.
|

11-28-2007, 09:52 AM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Indiana
Posts: 654
|
|
|
I don't know that it has any drawbacks compared to ASP...it's just...different.
|

11-28-2007, 10:30 AM
|
|
The Himalayan Warrior
|
|
Join Date: Oct 2006
Location: India
Posts: 50
|
|
|
isnt "stored procedures' something related to databases?
|

11-28-2007, 10:31 AM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Indiana
Posts: 654
|
|
They are, that's why I changed it quick hoping I could edit it before someone read it...guess that didn't happen
That would be the drawback of using MySQL.
|

11-28-2007, 10:33 AM
|
|
The Himalayan Warrior
|
|
Join Date: Oct 2006
Location: India
Posts: 50
|
|
|
I think MySQL does have stored procedures, no?
|

11-28-2007, 10:34 AM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Indiana
Posts: 654
|
|
|
Not that I'm aware of.
|

11-29-2007, 01:27 PM
|
 |
Mooderater
|
|
Join Date: Feb 2006
Location: Ohio
Posts: 579
|
|
|
As of version 5.0, MySQL does support stored procedures.
|

11-29-2007, 01:33 PM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Indiana
Posts: 654
|
|
|
truly?
I did not know this.
|

11-29-2007, 01:37 PM
|
 |
Mooderater
|
|
Join Date: Feb 2006
Location: Ohio
Posts: 579
|
|
|
|

12-03-2007, 08:53 AM
|
|
Registered User
|
|
Join Date: Dec 2004
Posts: 14
|
|
|
There are some limitations still with using multiple classes in classes, these issues are expected to be fixed in PHP 6.
In addition to this, a few bugs have been reported that are actual bugs and the team developing PHP are not acknowledging these as bugs but design flaws.
Most of the limitations are complicated and hard to understand on a basic level. In addition to this, when you start developing complex programs in PHP, you soon discover memory leaks in a lot of functions.
The way to avoid memory leaks is to write clean PHP opposed to sloppy PHP.
__________________
Matthew Bonner
|

12-03-2007, 08:59 AM
|
|
Registered User
|
|
Join Date: Dec 2004
Posts: 14
|
|
|
In addition to my comments about PHP...
ASP is not supposed to be used as a standalone web application programming language, it has been designed to integrate software, office applications, network resources and web services together to make it easy for a business to manage everything together (like an all-in-one programming interface).
In business, if a website was to be developed, the backend for the website could be developed as an application installed on the client PC so that the administration area is not broadcast over the internet unlike PHP which makes doing things like this almost impossible, I say almost because you can use PHP to write applications.
__________________
Matthew Bonner
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:09 AM.
|