what do you guys think about this php article? Using PHP in Large Websites

Discussion in 'OT Technology' started by D1G1T4L, Feb 12, 2004.

  1. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
  2. fatlip

    fatlip Transcendence Into The Peripheral

    Joined:
    Jun 16, 2001
    Messages:
    522
    Likes Received:
    0
    Location:
    UK
    I'm sorry, but that article is a load of b******t! Its sites a collection of bad programming pratices (bad use of variable scope, functions, etc..) and then tries to make out like php isn't equipped to handle them. Especially the complaints about php.ini, you can code for any configuration/version of php if you put some thought into it.

    Any programming language (c, java, perl, etc..) requires some kind of intelligence and appitude from the programmer, to site a language as weak from the fact that rubbish programmers can make mistakes is no reason to undermine a language, in fact its plain stupid! Php, just like any other language, requires some intelligence to implement properly, just because its open source does't mean its supposed to bullet proof. No programming language is bullet proof!
     
  3. Astro

    Astro Code Monkey

    Joined:
    Mar 18, 2000
    Messages:
    2,047
    Likes Received:
    0
    Location:
    Cleveland Ohio
    You can find more people talking about this here: http://www.phpbuilder.com/board/showthread.php?s=&threadid=10266458

    There's some merit to the article, but at the same time, the author is a bit bias. His points make sense, but at the same time you can also argue "so what?".

    Globals: don't use them
    php.ini: choose your host wisely or learn to tweak some of these settings from .htaccess
    magic_quotes: leave it disabled. Again, choose your host wisely.

    "the language
    PHP:
     was accretedrather than ever having been designed"  - *gasp*  uh oh!  What are we going to do!?  Holy crap!  Isn't this how modern spoken language works?  The English language has a boat load of words found from other languages.  Its functional.  Now French on the hand tends to be "designed".  They like to swap foreign words with made up French words (my favorite is the word "computer" which is now "ordinateur" (sp?)).  Granted, its nice to have a structured programming language.  But PHP seems to be able to keep up with the industrial strength languages without problems.  

    "
    There are two major problems with the autoglobals:

       
    1. They aren’t available in older versions of PHP
       2. You still have CGI parameters conflated with cookies
    "

    1.  Don't be using older versions of PHP.  If you're on PHP v3 then yell at your host or switch hosting providers.  There's even FREE ones out there now if you have good timing.
    2.  Eh, you have 
    $_GET$_POST$_COOKIE.  Use $_REQUEST and yeah, its all going to be combined.  But I think its safe to say using $_REQUEST is dangerous and should be avoided.  PHP doesn't hold your hand here.
     

Share This Page