Page 1 of 3 123 LastLast
Results 1 to 20 of 49
  1. #1
    Ben Stones's Avatar
    Ben Stones is offline Customer Interaction Associate
    Join Date
    Jan 2007
    Location
    United Kingdom
    Posts
    2,989

    Default PHP, ASP or Perl?

    All three languages do pretty much similar things, for me the easiest amongst PHP, ASP and Perl to learn has got to be PHP. Anyway, PHP & ASP can do pretty much the same thing, but for me PHP has got to be the best. It's easy to use and finally, I can make my own PHP scripts, after switching from ASP, PHP, etc. PHP is very logical unlike ASP. Nonetheless, both of them can do pretty much the same thing.
    Last edited by Ben Stones; 25-02-2008 at 13:29.
    Domains Registrations @ £7.49pa! - Download the official eUKhost Android and iOS App!

    eNlight Cloud Hosting - Cost-Effective, Autoscaling Cloud Hosting
    How does eNlight work? What differences and benefits are there to VPS and Dedicated Servers?

    Chat to us on Twitter!
    Join our incentive affiliate program now - and earn generous commission with each sale!

    How do I contact eUKhost?
    Support: Client Area - 0808 262 0455
    Sales: sales[@]eukhost.com - 0800 862 0380
    Contact eUKhost Management

    Customer Relations:
    feedback@eukhost.com - 0808 262 0255

    Contact:
    ben@eukhost.com
    Skype: euk_ben
    Windows Live Messenger: ben@eukhost.com


    Don't ever let other people's thoughts, feelings, perceptions and/or opinions drown over yours. You know yourself the best. Go with what you think is right. Everyone else's opinions or statements about you or others are secondary.

  2. #2
    esnail is offline Premium Member
    Join Date
    Mar 2007
    Posts
    485

    Default

    I like ASP but I've moved over to PHP for the simple reason that it's very well supported via the online community - it's still in development, being a very active open source language and unlike ASP, you don't require a windows server to run it. PHP is fast becoming a very powerful language and to some extent has replaced perl for many web developers. For anyone about to choose a development language I'd certainly suggest PHP.

  3. #3
    DPS Computing's Avatar
    DPS Computing is offline Voluntary Moderator and Customer of eUKhost
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,418

    Default

    PHP forever!! - it is platform independant and the most supported!
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  4. #4
    paul's Avatar
    paul is offline Moderator
    Join Date
    Nov 2005
    Posts
    2,518

    Default

    I think Perl is almost dead, I would prefer for PHP & ASP, however every language has its own benefits and usess that actually depends on your need.

  5. #5
    DPS Computing's Avatar
    DPS Computing is offline Voluntary Moderator and Customer of eUKhost
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,418

    Default

    The thing with Perl is that it is old and less supported and seems to be gradually dieing the more it lives on . Sadly, it does seem to have been superseeded by languages like ASP and PHP. I can't think of any programs that have been updated recently that are still written in Perl although I am sure there is still a couple out there .
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  6. #6
    paul's Avatar
    paul is offline Moderator
    Join Date
    Nov 2005
    Posts
    2,518

    Default

    Yeah also the reason Perl is fading away it lack interest of good programmers and overshadowed by other languages. However I see a good future of PHP & ROR..

  7. #7
    DPS Computing's Avatar
    DPS Computing is offline Voluntary Moderator and Customer of eUKhost
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,418

    Default

    Oh yes most definitely, RoR looks like it is going to take off. Once the people at the top of the programming field start forgetting about a language it does tend to go downhill from there unfortunately.

    However you still do get avid supporters who continue to use it and program little applications in it which keep some older and less used languages going.

    Also, when the community starts to dwindle, more people leave said community for a more well supported language. This works the same for forums software, CMSs, blogs etc as well .
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  8. #8
    paul's Avatar
    paul is offline Moderator
    Join Date
    Nov 2005
    Posts
    2,518

    Default

    Quote Originally Posted by DPS Computing View Post
    Oh yes most definitely, RoR looks like it is going to take off. Once the people at the top of the programming field start forgetting about a language it does tend to go downhill from there unfortunately.

    However you still do get avid supporters who continue to use it and program little applications in it which keep some older and less used languages going.

    Also, when the community starts to dwindle, more people leave said community for a more well supported language. This works the same for forums software, CMSs, blogs etc as well .
    You are right about RoR, it is getting good pick up and beside it C++ as well growing somewhat and interestingly Lua enters top 20'. tiobe.com/tpci.htm

  9. #9
    mephisto's Avatar
    mephisto is offline Senior Member
    Join Date
    Feb 2007
    Location
    Darlington
    Posts
    101

    Default

    I used both ASP and PHP at work, as well as many others, and I find that I code much faster in PHP because there are so many ways of doing things that simplify your code. For example, to print out the letters A to Z separated by a comma

    ASP:

    Code:
    <%
    Dim i
    For i = 65 To 90
       If i > 65 And i < 90 Then
          Response.Write ","
       End If
       Response.Write Chr(i)
    Next
    %>
    PHP Code:
    <?php
    echo implode(','range('A''Z'));
    ?>
    That's only a small example, but once you start getting into better object orientated stuff, PHP beats ASP hands down. ASP has no concept of asbtraction, inheritance or interfaces and it can't do reflection or dynamic function calls like PHP's callback feature.

  10. #10
    WelshTom is offline Senior Member
    Join Date
    May 2007
    Location
    Newport, Wales
    Posts
    998

    Default

    PHP all the way

  11. #11
    eUKhost.com's Avatar
    eUKhost.com is offline Chief Marketing Officer
    Join Date
    Sep 2005
    Posts
    6,039

    Default

    I thought ASP was more secure though its complicated.

    Anyways, now I'll switch to PHP
    UK Web Hosting || Business Hosting || eUKhost Knowledgebase
    Toll Free : 0808 262 0255 || Skype : mark_ducadi
    A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
    __________________________________________________

    Please email cmo[at]eukhost.com if you have any questions or need my assistance

  12. #12
    mephisto's Avatar
    mephisto is offline Senior Member
    Join Date
    Feb 2007
    Location
    Darlington
    Posts
    101

    Default

    Are we talking about ASP or ASP.NET?? Certainly PHP is more secure than ASP, well of course that all depends on the code written, but there are more controls in place to secure PHP.

    Eg. with PDO you can put your connection string to a database in the php.ini file and then just reference to it in your code. Which means you don't need to code in the database password.

    The other thing PHP has over ASP is that it's still maintained.

  13. #13
    eUKhost.com's Avatar
    eUKhost.com is offline Chief Marketing Officer
    Join Date
    Sep 2005
    Posts
    6,039

    Default

    Quote Originally Posted by mephisto View Post
    Are we talking about ASP or ASP.NET?? Certainly PHP is more secure than ASP, well of course that all depends on the code written, but there are more controls in place to secure PHP.

    Eg. with PDO you can put your connection string to a database in the php.ini file and then just reference to it in your code. Which means you don't need to code in the database password.

    The other thing PHP has over ASP is that it's still maintained.
    What about ASP.NET ?

    is ASP.NET secure than PHP or no ?
    UK Web Hosting || Business Hosting || eUKhost Knowledgebase
    Toll Free : 0808 262 0255 || Skype : mark_ducadi
    A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
    __________________________________________________

    Please email cmo[at]eukhost.com if you have any questions or need my assistance

  14. #14
    mephisto's Avatar
    mephisto is offline Senior Member
    Join Date
    Feb 2007
    Location
    Darlington
    Posts
    101

    Default

    About the same, the majority of times its not down the programming language, its down to the configuration of the hosting environment.

    Personally I feel like open source solutions are generally more secure, because a security issue can be found by a wider community and so fixed earlier. Whereas with closed source, such as ASP.NET you're mostly reliant on the manufacturers to find them.

    That's probably going to upset some people who love ASP.NET, but that's just my opinion.

  15. #15
    flesso's Avatar
    flesso is offline Voluntary Moderator
    Join Date
    Mar 2007
    Location
    127.0.0.1
    Posts
    1,661

    Default

    Quote Originally Posted by mephisto View Post
    About the same, the majority of times its not down the programming language, its down to the configuration of the hosting environment.

    Personally I feel like open source solutions are generally more secure, because a security issue can be found by a wider community and so fixed earlier. Whereas with closed source, such as ASP.NET you're mostly reliant on the manufacturers to find them.

    That's probably going to upset some people who love ASP.NET, but that's just my opinion.
    But then you could argue that if a bug is found in an open source base, then it would be pretty easy for a hacker to exploit it; with closed source bases, it would be harder for the bug to be found and for a hacker to then exploit it.
    Josh

    Resident Blogger

  16. #16
    mephisto's Avatar
    mephisto is offline Senior Member
    Join Date
    Feb 2007
    Location
    Darlington
    Posts
    101

    Default

    Quote Originally Posted by flesco
    But then you could argue that if a bug is found in an open source base, then it would be pretty easy for a hacker to exploit it; with closed source bases, it would be harder for the bug to be found and for a hacker to then exploit it.
    Yes that's also true, it's the other side of the coin. However it depends how the bug is found, with open source it's not just hackers who would be looking for them, it's also open for people to find them and highlight as bugs, which would mean it would get fixed quicker.

    With closed source how can the general public find these security holes? They'd have to hack, and the people who know how to hack are hackers, I don't think they'd want to report that they've found a successful way to hack; so it wouldn't get fixed as quickly.

    The majority of the times it down to the coder, not the language.

    For example how many of you have developed using inline queries? If you have a login box which does the following query.

    ASP
    Code:
    Dim sql
    sql = "SELECT * FROM user WHERE username = '" & Request.Form("username") & "' AND password = '" & Request.Form("password") & "'"
    PHP
    PHP Code:
    $sql "SELECT * FROM user WHERE username = '" $_POST['username'] . "' AND password = '" $_POST['password'] . "'"
    Both of these are insecure as each other. If a someone knew a username eg. mephisto, then all they need to pass the above login is type the username as mephisto' -- and the password could be anything.

    Which would make the SQL Server query
    Code:
    SELECT * FROM user WHERE username = 'mephisto' --' AND password = ''
    everything after the -- is a comment, so this effectively

    Code:
    SELECT * FROM user WHERE username = 'mephisto'
    and there you have a sucessful login, regardless of the programing language, just down to the code.

    Best way around this is to use prepared statements, or at least escape your values.

    For those who are wondering, I just tried this with eUKHosts forums and it doesn't bypass the login

  17. #17
    Maddy12 is offline new member
    Join Date
    Jun 2008
    Posts
    3

    Default

    Hello
    I like both php and asp, PHP is more secure than asp and becoming more powerful language.PHP is good language for web development.


    _______________

    Website Hosting development
    Free templates

  18. #18
    Ben Stones's Avatar
    Ben Stones is offline Customer Interaction Associate
    Join Date
    Jan 2007
    Location
    United Kingdom
    Posts
    2,989

    Default

    Quote Originally Posted by Maddy12 View Post
    Hello
    I like both php and asp, PHP is more secure than asp and becoming more powerful language.PHP is good language for web development.


    _______________

    Website Hosting development
    Free templates
    Hard to contemplate which programming language is the most secure; but oddly there are a lot of security issues being posted in the PHP Bug's database - not sure if this is because they aren't being addressed quickly enough.

    You could say that because PHP has more things to work with but ASP is pretty much the same in terms of what it can make, and you could make the same type of application in both PHP and ASP; but it may vary differently to the finishing time.
    Domains Registrations @ £7.49pa! - Download the official eUKhost Android and iOS App!

    eNlight Cloud Hosting - Cost-Effective, Autoscaling Cloud Hosting
    How does eNlight work? What differences and benefits are there to VPS and Dedicated Servers?

    Chat to us on Twitter!
    Join our incentive affiliate program now - and earn generous commission with each sale!

    How do I contact eUKhost?
    Support: Client Area - 0808 262 0455
    Sales: sales[@]eukhost.com - 0800 862 0380
    Contact eUKhost Management

    Customer Relations:
    feedback@eukhost.com - 0808 262 0255

    Contact:
    ben@eukhost.com
    Skype: euk_ben
    Windows Live Messenger: ben@eukhost.com


    Don't ever let other people's thoughts, feelings, perceptions and/or opinions drown over yours. You know yourself the best. Go with what you think is right. Everyone else's opinions or statements about you or others are secondary.

  19. #19
    flesso's Avatar
    flesso is offline Voluntary Moderator
    Join Date
    Mar 2007
    Location
    127.0.0.1
    Posts
    1,661

    Default

    PHP is better in terms of functionality and simplicity. ASP on the other hand is a bulky language meaning that it normally takes 100s of lines just to get something to work which would only take 1 line in PHP. And as we all know PHP is free, meaning that anyone with a computer capable of running Apache can install PHP so they can start to learn it.

    And why am I taking the side of PHP when I mainly write in ASP
    Josh

    Resident Blogger

  20. #20
    DPS Computing's Avatar
    DPS Computing is offline Voluntary Moderator and Customer of eUKhost
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,418

    Default

    Quote Originally Posted by flesso View Post
    PHP is better in terms of functionality and simplicity. ASP on the other hand is a bulky language meaning that it normally takes 100s of lines just to get something to work which would only take 1 line in PHP. And as we all know PHP is free, meaning that anyone with a computer capable of running Apache can install PHP so they can start to learn it.

    And why am I taking the side of PHP when I mainly write in ASP
    Because you know ASP has been tainted by Microsoft?
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Content Relevant URLs by vBSEO 3.6.0