Bytes Expert Newtork: Connect with experts in IT / Business | Expert Topics



Search


Go Back   Programmers Resource > Programming Forums > PHP
User Name
Password


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-14-2007, 05:01 AM
cancer10 cancer10 is offline
The Himalayan Warrior
 
Join Date: Oct 2006
Location: India
Posts: 50
Send a message via ICQ to cancer10 Send a message via AIM to cancer10 Send a message via MSN to cancer10 Send a message via Yahoo to cancer10
Question Drawback of php

Hey,

I was wondering if there is/are any drawbacks/limitations of php over other web languages?


Thanx
__________________
www.igchosting.in - Cheapest Paid Hosting
Reply With Quote
  #2  
Old 11-14-2007, 09:04 AM
Nook Schreier's Avatar
Nook Schreier Nook Schreier is offline
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.
__________________
www.NookSchreier.Net
Reply With Quote
  #3  
Old 11-14-2007, 10:10 AM
cancer10 cancer10 is offline
The Himalayan Warrior
 
Join Date: Oct 2006
Location: India
Posts: 50
Send a message via ICQ to cancer10 Send a message via AIM to cancer10 Send a message via MSN to cancer10 Send a message via Yahoo to cancer10
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
__________________
www.igchosting.in - Cheapest Paid Hosting
Reply With Quote
  #4  
Old 11-14-2007, 12:23 PM
Nook Schreier's Avatar
Nook Schreier Nook Schreier is offline
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.
__________________
www.NookSchreier.Net
Reply With Quote
  #5  
Old 11-28-2007, 09:52 AM
Archangel's Avatar
Archangel Archangel is offline
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.
Reply With Quote
  #6  
Old 11-28-2007, 10:30 AM
cancer10 cancer10 is offline
The Himalayan Warrior
 
Join Date: Oct 2006
Location: India
Posts: 50
Send a message via ICQ to cancer10 Send a message via AIM to cancer10 Send a message via MSN to cancer10 Send a message via Yahoo to cancer10
isnt "stored procedures' something related to databases?
__________________
www.igchosting.in - Cheapest Paid Hosting
Reply With Quote
  #7  
Old 11-28-2007, 10:31 AM
Archangel's Avatar
Archangel Archangel is offline
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.
Reply With Quote
  #8  
Old 11-28-2007, 10:33 AM
cancer10 cancer10 is offline
The Himalayan Warrior
 
Join Date: Oct 2006
Location: India
Posts: 50
Send a message via ICQ to cancer10 Send a message via AIM to cancer10 Send a message via MSN to cancer10 Send a message via Yahoo to cancer10
I think MySQL does have stored procedures, no?
__________________
www.igchosting.in - Cheapest Paid Hosting
Reply With Quote
  #9  
Old 11-28-2007, 10:34 AM
Archangel's Avatar
Archangel Archangel is offline
Registered User
 
Join Date: Jun 2004
Location: Indiana
Posts: 654
Not that I'm aware of.
Reply With Quote
  #10  
Old 11-29-2007, 01:27 PM
Nook Schreier's Avatar
Nook Schreier Nook Schreier is offline
Mooderater
 
Join Date: Feb 2006
Location: Ohio
Posts: 579
As of version 5.0, MySQL does support stored procedures.
__________________
www.NookSchreier.Net
Reply With Quote
  #11  
Old 11-29-2007, 01:33 PM
Archangel's Avatar
Archangel Archangel is offline
Registered User
 
Join Date: Jun 2004
Location: Indiana
Posts: 654
truly?

I did not know this.
Reply With Quote
  #12  
Old 11-29-2007, 01:37 PM
Nook Schreier's Avatar
Nook Schreier Nook Schreier is offline
Mooderater
 
Join Date: Feb 2006
Location: Ohio
Posts: 579
__________________
www.NookSchreier.Net
Reply With Quote
  #13  
Old 12-03-2007, 08:53 AM
Matthew Bonner Matthew Bonner is offline
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
Reply With Quote
  #14  
Old 12-03-2007, 08:59 AM
Matthew Bonner Matthew Bonner is offline
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump



All times are GMT -5. The time now is 03:09 AM.



Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
All content Copyright ©1999 - 2010, Programmers Resource, unless otherwise noted.