|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Nov 2002
Posts: 299
|
what's so good 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 (Currently: ASUS 9600 GSO 348 mb), 2 GB (2x1gb) DDR2-800 Crucial Ballistix, Echo Audiofire4 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 |
|
Member (9 bit)
Join Date: May 2002
Posts: 298
|
using pure HTML to code creates simple web pages or static web pages, meaning the web pages don't change. What you code in there is what you get out of it. php is only one of the many languages which allow web pages to become dynamic, meaning it can display content on the fly, maybe depending on who the user is and other situations.
JSP is the best!! |
|
|
|
|
|
#3 |
|
Member (9 bit)
Join Date: Nov 2002
Posts: 299
|
what kinda content does php create? Do you got any website examples? I just wanna create a video game site, with a good design and lots of content.
|
|
|
|
|
|
#4 |
|
Member (9 bit)
Join Date: May 2002
Posts: 298
|
php is code that is embedded as a part of the html web page. When you access a web page that contains php and html, that page is interpreted or "compiled" on the fly, and results in a web page in pure html code only. So, when you view source on that web page, you will only see html coding and no php coding. PHP and other languages enable you to display dynamic data. PHP and other dynamic languages may be known as "server side scripting" since the code is compiled on the server side, and the end-user (the client side) is never able to see that code. This very forum uses PHP since web content is always changing, and content is catered toward each specific user. If you think about it, it is impossible to maintain a forum with only pure html, since it only is able to handle static data. More "elaborate" languages are needed to be able to handle the concepts of variables and such.
|
|
|
|
|
|
#5 |
|
Member (9 bit)
Join Date: Nov 2002
Posts: 299
|
suppose I'm a beginner..to web design
--what is dynamic data, is there an example, specifically? -What's a good use for php while making video game websites? |
|
|
|
|
|
#6 |
|
Member (9 bit)
Join Date: May 2002
Posts: 298
|
Dynamic means always changing. In the dictionary, it would tell you that it relates to being in motion. U will want php when you have content that's always changing, such as this Forums, content in a page is always changing, because once I hit the submit button, php must be able to update the page and include my post in there as well. can be used for anything, use your imagination.
|
|
|
|
|
|
#7 |
|
Member (9 bit)
Join Date: Nov 2002
Posts: 299
|
alright cool,
So if I create a rollercoaster tycoon website, and have tons of downloads for rides, parks, trainers, etc. Would php help update new rides on the page easier? |
|
|
|
|
|
#8 | |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
Quote:
__________________
"A witty saying proves nothing." - Voltaire |
|
|
|
|
|
|
#9 |
|
Member (9 bit)
Join Date: Nov 2002
Posts: 299
|
I don't want to buy a php book and not read it all the way. i just want to learn a little bit of php for now, since I'm a beginner webmaster.
-Also I just want to use php, if it works a lot better, for downloads on my video game site. -If there are tutorials out there on the net, I'd love to read them. |
|
|
|
|
|
#10 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
|
|
|
|
|
|
#11 | |
|
Member (9 bit)
Join Date: Nov 2002
Posts: 299
|
Quote:
I'm stuck at this webpage: http://hotwired.lycos.com/webmonkey/...tw=programming ---It said I may have a typo somewhere, but I copy and pasted all the codes they told me to paste in the different files. -Can someone help me install php4 on my windows, maybe I have the wrong version of php4??????? |
|
|
|
|
|
|
#12 |
|
Member (13 bit)
|
Make sure the path to PHP in your scripts is correct. I'd suggest adding PHP as a module for apache that runs imbedded in the server. Read up on modphp, it's pretty simple to set it up that way and performance will be better as well.
The reasons php is so nice... 1) Compatbility, it's unlike any other client side scripting language (such as javascript) in that it just spits out regular HTML code so the pages that it generates will work in any browser that you need it to. 2) On top of being inherently flexible with compatibility, it very easily pulls data from external sources (such as a database) to make content easy to generate as well. This forum is a good example. It's nothing but a database to hold the users, posts, etc. with a bunch of php scripts to grab the info and build webpages out of it. There are no "pages" per se in this forum at all, just data and PHP scripts to make it appear as if there were. And since it's all done server-side, there are no performance issues to speak of no matter how much is on the forum, regardless of your internet connection speed or how much is on each page. To your browser it's just HTML. Last edited by Xayd; 01-07-2003 at 10:46 AM. |
|
|
|
|
|
#13 |
|
Member (8 bit)
|
Actually, Everyone here is making a good point, but PHP is pretty much html/Javascript/dhtml/cgi, and other tools i have yet to hear about, all in one.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|