PHP Programming Environment

Discussion in 'PHP' started by Sally2000, Nov 22, 2007.

  1. Sally2000

    Sally2000 New Member

    Joined:
    Nov 20, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Hello all,

    What ENVIRONMENT is used for PHP Programming?
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    48
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    PHP is usually run within a web server, preferably Apache.
     
  3. pete_bisby

    pete_bisby New Member

    Joined:
    Nov 11, 2007
    Messages:
    48
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    Software Developer/Analyst, PB
    Location:
    Manchester, England
    Home Page:
    http://www.pbworld.co.uk
    .... depends on the definition of environment ....

    Actual development of PHP you can simply use a text editor - vi or gEdit if you're using Linux, Notepad or Wordpad if you're using Windows. Personally, I use a licensed version of phpDesigner (http://www.mpsoftware.dk/phpdesigner.php) - very good editor, and well worth the money.

    Running environment, I agree with pradeep - open source solution with Apache is very good, and highly recommended. Configuring IIS (Windows) with PHP is possible, but quirky. Also, there are subtle differences with programming PHP to run on Apache and IIS - IIS forces you to declare all variables .... not a bad thing, mind you - it's always a good practice.

    You can also run PHP scripts directly from the command prompt, using the php.exe (windows) file extension. If you're ever looking at automating PHP scripts within Linux, I would recommend calling the scripts using Lynx, which is a text-only web browser, with cron - I've been using this method for a few years now and never a missed automated report!!

    It would be a good idea to use both operating system environments, and develop your skills to both Windows and Linux. This way you can adapt your code easily to run on both, without the need to re-develop, and offering your client/customer the best of both worlds.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice