Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Aug 2004
    Posts
    367
    Thanks
    10
    Thanked 4 Times in 4 Posts

    Opinions About PHP

    Hello,
    I would like to ask a sincere question:

    Do you believe PHP has turned out to be the language they said it would be when it first came out?

    I know it's popular, but that doesn't mean it's necessarily better. Anyone who owns a server becomes very familiar with php.ini, because there are so many security issues. I know someone's gonna blame poor programming, but shouldn't some of this stuff be built into the language?

    I have used PHP in some scripts, but I always go back to Perl mainly because it's more fun in my opionion.

    I am just curious about people's opinions of PHP.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    I'm no authority, but I've really enjoyed it. It suits my lousy programming style I could not get into Perl in the two days I tried. The planets were not aligned for me I guess. And anymore I'm steering clear of Micosoft-centric stuff; the Vista debacle has cut deeply into my faith in the company's competence. So ASP is not an option. Cold Fusion... Didn't The University of Utah try to make that work once?

    The security issues of PHP are annoying to be sure PHP 5 has addressed much of the problem and shows real maturity... Lastly I'd say most of its popularity stems from its price tag, which can't be beat.

  • #3
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    i do love php. Its just so much fun to see stuff work. Another reason is that it is multi platform. My boss is a windows freak, and I love linux(CentOS baby!) And I didnt need to learn a whole new language(asp...) just to work there. I just installed php and it works the same.

    -works everywhere
    -free
    -fairly easy to learn/remember
    -secure if you make it secure

    -Adam
    Why not thank me?

    http://adamsworld.name

  • #4
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts
    I stopped using perl about 5 years ago when I first learned PHP - I've been using PHP ever since - I find it superior to perl and as many have said before, it marrys perfectly with MySQL.
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #5
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    I'm just going to echo the other points, but also add that security needs to be in the hands of the programmer to begin with. When the language steps in and tries to enforce security where it shouldn't be to begin with(magic quotes for instance) it just causes more problems than solutions. PHP was originally a simple form processor, so I'd have to say that it's not what was originally intended; it's so much more than that now. I understand you liking PERL though, every PERL programmer that I've ever spoken to always goes back to their language after trying something else. I've been told various reasons for this, but most seem to like the power and simplicity(to them ) of PERL.

  • #6
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,871
    Thanks
    2
    Thanked 164 Times in 159 Posts
    I always get a chuckle when I see questions like this. Whenever you pose this type of question, the answer will always be slanted toward the language of the given forum, no matter which language you're asking about. As everyone knows, my language of choice is Perl, but on rare occasions, I'll do something in PHP (only when it's the employer's requirement). I could list the reasons why I prefer Perl, but there is no reason to do so, and I don't want to start the "mine is better than yours" war.

    PHP was originally a simple form processor
    It actually started out as a collection of Perl (and I think bash) scripts that handled form processing and a few other things. Personal Home Page

  • #7
    Regular Coder
    Join Date
    Aug 2004
    Posts
    367
    Thanks
    10
    Thanked 4 Times in 4 Posts
    Thanks for replies thus far. Obviously PHP people like PHP, and Perl people like Perl. I was just kind of curious if opinions had changed over the years in the PHP community. It sounds like the PHP community believes it is getting better.

  • #8
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    Quote Originally Posted by FishMonger View Post
    As everyone knows, my language of choice is Perl
    I didn't know that.
    Quote Originally Posted by netroact View Post
    It sounds like the PHP community believes it is getting better.
    Do you believe it's not, or did you just want to know what other people think?

  • #9
    Regular Coder
    Join Date
    Aug 2004
    Posts
    367
    Thanks
    10
    Thanked 4 Times in 4 Posts
    Quote Originally Posted by Inigoesdr View Post
    Do you believe it's not, or did you just want to know what other people think?
    Well, I haven't noticed that it's better, but I don't use it all the time. I keep hearing about exploits and injections, and if you maintain a server with shared hosting, it can be a nightmare. I liked it a lot when it came out until I did a quiz script that used a lot of quotations a few years ago.

    PHP sure is popular now, and I guess there is a reason for it. That's what I am trying to figure out.

  • #10
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    OMG I can't believe someone used its original name: Personal Home Page! Ah, the good old Shebang lined PHP. I miss those times
    Quote Originally Posted by rfresh View Post
    I stopped using perl about 5 years ago when I first learned PHP - I've been using PHP ever since - I find it superior to perl and as many have said before, it marrys perfectly with MySQL.
    Similar story, about the same time too (right around when php3 was released).
    I will not say that it is superior in the least, but I do find it superior for static web based applications compared to Perl. Perl for Unix administration and socket programming is unbeatable and cannot be implemented by PHP. +1 for Perl.

    The part I've enjoyed most is wandering with php as it matures. I remember the whole 'omg array_merge works with mixed data yay' followed a couple of releases later with 'omg array_merge only works with arrays like it supposed to have and no my stuff doesn't work ', lol. PHP5.0.1 had a sloppy object core, but as of (the lowest version I've been satisfied with testing in) 5.1.2 I've been very pleased with their OO engine.

    I do not believe that a language should be responsible for the programmer. Sure, some languages have features (java has its garbage collection and sandboxing, C# has its delegates, etc), but how much I would love to program a C program to have a message come up like 'oops, you can't access this section in memory'. W.T.F. Everything programmed has holes in it, a primary compilation of these applications was released with the name Windows
    Frankly though, php does hold a lot of capabilities for 'fixing the programmers mistakes' released with the latest versions of php - someone else mentioned this already. MySQLi uses a prepared statement mechanism that helps to diminish SQL injections.
    But if a programmer does like so:
    PHP Code:
    $db->query('SELECT * FROM table WHERE id=\'' $_POST['id'] . '\''); 
    They deserve to have their database hijacked. Proper control of a language is the key to proper usage, and yes everyone makes mistakes. The point is nothing is perfect but if you do everything right it should minimize the exploits available.
    Lol this reminds me, with the PHP 5.0.1 I put together a quick object. In my object I had a private method. In a child class I had another private method of the same name. Interestingly enough, PHP would use the private method of the parent instead of the child when accessing from the child - obviously an incorrect usage. That caused me so much grief

    Anyway, thats my 2 cents
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • Users who have thanked Fou-Lu for this post:

    iLLin (01-03-2008)


  •  

    Posting Permissions

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