Why Choose PHP?
Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Why Choose PHP?

Hybrid View

  1. #1
    Member e><ius's Avatar
    Join Date
    Mar 2007
    Location
    So.Cal.
    Posts
    61

    Why Choose PHP?

    For all those who are fans of PHP web language, why do you love it so much? What do u do with it? What can you do with it?

    Im asking because I have been web-designing with mostly html, minor javascript, minor css, and minor php since 2000. and my friend tossed me his brand new PHP book, and i dont know if its worth my time. i havent a clue of possible benefits except for a "contact us" email form and mySQL database.

  2. #2
    Senior Member kr5kernel's Avatar
    Join Date
    Mar 2004
    Posts
    347
    Why Choose HTML? Why Choose Perl? Different languages are better at different things, like speed and ease of use. I do lots of stuff in PHP, stuff that could be done in python,perl,etc. Its like any other language, if you can imagine something, you can build it. PHP is just another accepted way of using these building blocks to accomplish your goal.
    kr5kernel
    (kr5kernel at hotmail dot com)
    Linux: Making Penguins Cool Since 1994.

  3. #3
    Member e><ius's Avatar
    Join Date
    Mar 2007
    Location
    So.Cal.
    Posts
    61
    ker5kernal,

    anything in specific you'd like to share?

  4. #4
    Senior Member JPnyc's Avatar
    Join Date
    Jan 2005
    Posts
    2,734
    'Cause it's a palindrome.

  5. #5
    Senior Member kr5kernel's Avatar
    Join Date
    Mar 2004
    Posts
    347

    PHP

    Sure, I've done your run of the mill contact forms, and using PHP in integrate applications into MySQL databases...I have done mashups with PHP and Asterisk, allowing users to call a phone number and get the output of php scripts. PHP to generate xml, rss, etc. PHP gives you the ability to bulid functions so you can replicate tasks without having to recode, it saves time and is widely used. Does that help?
    kr5kernel
    (kr5kernel at hotmail dot com)
    Linux: Making Penguins Cool Since 1994.

  6. #6
    Member e><ius's Avatar
    Join Date
    Mar 2007
    Location
    So.Cal.
    Posts
    61
    yes actually!

    one thing that really caught my eye was the PHP + Asterisk setup. so what kinda output data would you be receiving, and how could u integrate a voip (or phoneline) setup with PHP script? sounds amazing to have.

  7. #7
    Senior Member kr5kernel's Avatar
    Join Date
    Mar 2004
    Posts
    347
    Its pretty simple, you setup an extension to pull some php and run it through festival. Instant robot voice reading whatever you want. Add some navigable menus with a dialplan, and it then becomes interactive.
    kr5kernel
    (kr5kernel at hotmail dot com)
    Linux: Making Penguins Cool Since 1994.

  8. #8
    Member e><ius's Avatar
    Join Date
    Mar 2007
    Location
    So.Cal.
    Posts
    61
    one day... one day... i will have ur powers.

  9. #9
    I use it all the time in the websites I build - even the simple ones. The main things I use it for is:

    * headers and footers via include(); so I only need to change 1 central file to update the entire site

    * menus and sub menus using simple arrays so that if a section of the site has a new page added I just update the master array and all pages in that section get the new page. You can do it with a simple include(); but using an array I can do things like make the current section or page display differently in the menu via style rules.

    * random image banners

    It just makes life a lot easier doing those things - and they don't require a huge learning curve.

    Cheers,
    Niggles

  10. #10
    Old-Fogey:Addicts founder Terr's Avatar
    Join Date
    Aug 2001
    Location
    Seattle, WA
    Posts
    2,007
    Quote Originally Posted by niggles
    * headers and footers via include(); so I only need to change 1 central file to update the entire site
    Suggestion: Use Apache's "AddHandler" functionality so that all ".phpniggles" files are "handled" by your own PHP script. That script can then make sure that the header and footer are spit out appropriately instead of you having to put them at the very beginning and very end of every file, etc.

    VERY useful if anybody besides you might edit the file and accidentally drop an include(), put content outside the middle, etc.
    [HvC]Terr: L33T Technical Proficiency

Similar Threads

  1. Apache, PHP, MySQL with basic security settings.
    By nightcat in forum The Security Tutorials Forum
    Replies: 9
    Last Post: May 28th, 2005, 02:47 AM
  2. PHP Flaws
    By SDK in forum Web Security
    Replies: 19
    Last Post: December 20th, 2004, 04:31 PM
  3. Tutorial: Apache 2.0.49 and PHP 4.3.7!
    By Vorlin in forum Other Tutorials Forum
    Replies: 3
    Last Post: June 15th, 2004, 10:25 PM
  4. Installing Apache and PHP on Linux
    By HDD in forum Other Tutorials Forum
    Replies: 2
    Last Post: February 1st, 2004, 07:05 PM
  5. flash for website !!!!!!!!!!!!!!
    By thuongtamnhan in forum AntiOnline's General Chit Chat
    Replies: 3
    Last Post: November 1st, 2003, 02:45 PM

Posting Permissions

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

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides