what's so important about php?

Sharky Forums


Results 1 to 8 of 8

Thread: what's so important about php?

  1. #1
    Reef Shark
    Join Date
    Nov 2001
    Posts
    342

    what's so important about php?

    I'm kinda confused, I read a tutorial on php, but I still do not understand why it's easier or more useful to use php than regular html.

    What are good examples of using php?

    Like creating links? Pics? Music? etc? What is it important for?

    Would html work better or php?

    thanks
    Intel Core 2 Duo e8400 3 ghz
    Gigabyte EP35-DS3P Rev. 2.0
    eVGA Nvidia 6800 GT 256 mb
    2 GB (2x1gb) DDR2-800 Crucial Ballistix
    M-audio Firewire Solo external soundcard
    Seagate 120gb / 80 gb SATA150 hd
    BenQ 1620 DVD Burner
    Sony Floppy drive
    Antec Sonata II case w/450 Watt psu
    Samsung 20" widescreen LCD
    Win XP Home SP2

  2. #2
    Sleeps with the Fishes
    Join Date
    Jan 2001
    Location
    Pittsburgh (please click here to donate $5 to city budget)
    Posts
    1,246
    There is a huge difference between PHP and HTML, the biggest one being PHP is a server side programming language while HTML is just a client side markup language.

    PHP is used for creating powerful backend/ database driven websites, while HTML is solely used for laying out information on a page.

    If you need your website to perform complex operations other than just displaying images, text and music, then learn PHP.

    From the sound of it, I bet HTML would suit all your needs.

  3. #3
    Reef Shark
    Join Date
    Nov 2001
    Posts
    342
    you answered in my downloads thread about this...check it out, it's about setting up mySQL and php.

    How easy is it? and is it free?
    Intel Core 2 Duo e8400 3 ghz
    Gigabyte EP35-DS3P Rev. 2.0
    eVGA Nvidia 6800 GT 256 mb
    2 GB (2x1gb) DDR2-800 Crucial Ballistix
    M-audio Firewire Solo external soundcard
    Seagate 120gb / 80 gb SATA150 hd
    BenQ 1620 DVD Burner
    Sony Floppy drive
    Antec Sonata II case w/450 Watt psu
    Samsung 20" widescreen LCD
    Win XP Home SP2

  4. #4
    Tiger Shark unclescrooge's Avatar
    Join Date
    Mar 2002
    Location
    Somewhere South of North and North of South
    Posts
    594
    i knew nothing about php and mysql a couple of months back. i downloaded both and unzipped and now i am running a password encrypted site for my office.

    i had no idea how to do that as recently as last month.

    php is not only simpler than cgi/perl, it hooks with mysql almost perfectly.

    i'd also tell you to check out the following sites:

    http://www.devshed.com/Server_Side/PHP/
    http://hotwired.lycos.com/webmonkey/...php/index.html
    http://www.phpbuilder.com/

    and here's some sites that post already written scripts so that you can look at the code and see for yourself. these are programs that are sites that provide links to ready to use php programs:

    http://www.hotscripts.com/PHP/
    http://php.resourceindex.com/

    happy learning!
    "If you come to a fork in the road, take it"
    Yogi Berra.
    http://www.jchampion.com

  5. #5
    php is xcellent for websites n stuff because it allows alot more user intergration and like its already been said information can be stored in a database meaning you dont have to do anywork to edit the pages!

  6. #6
    Reef Shark Nephalim's Avatar
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    463
    Alright, so as to clarify for everyone: You ask, "Which is better, PHP or HTML?" The reply to such a question cannot truly include an answer as to which is better than the other because one does not replace the other. In fact, PHP builds on top of HTML, creating a more dynamic tool to implement HTML documents on a web server. In many ways (but by no means all) PHP is very much like other "server-side" scripting languages such as ASP, JSP, ColdFusion and perl. These scripting languages allow web developers to dynamically generate HTML (or XHTML) pages that include at the very simplistic level, the current date and time, or at a more complicated level, real-time data from a data-source like a database or file. So, PHP is not "better" than HTML, but it instead builds upon it to aid in developing robust web documents.
    ~ And that is my humble opinion.

    When I was a boy I was told that anybody could become President. Now I'm beginning to believe it. - Clarence Darrow

    The greatness of a woman’s power is measured in the size and amount of the balls she clutches in hand. -Nephalim

    "Tink"
    1700+ XP on A7N8X, 768MB PC2700 DDRRAM, Samsung 19" 900IFT, Radeon 64MB DDR VIVO, SB Live! MP3+, 42.9GB IBM HDD, Plexwriter 8/4/32, 3C905CTXM NIC

    "Hermes"
    Dell Inspiron 8200, 1.7 GHz P4, 512MB DDRRAM, 30GB HDD, DVDROM, Geforce4 Go 64MB

  7. #7
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077
    And for further clarification, you're comparing a programming language (PHP) with a markup language (HTML). That's not even comparing apples and oranges, it's more like comparing apples, and....a chocolate bar?

    They're very different things, which serve very different purposes. What Nephalim said was very good, I just wanted to add a little more clarification to this discussion.

  8. #8
    Goldfish daftness101's Avatar
    Join Date
    Jun 2002
    Location
    Fresno, CA, US, NW Hemisphere, Earth, Milky Way
    Posts
    52
    I would also like to add that in my short quest to learn PHP (which I still haven't..stupid procrastination), I had stumbled across http://www.codewalkers.com which has some useful tutorials. Just thought I'd toss in my 2 cents.

    Josh

Posting Permissions

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