- Aug 14, 2001
- 12,343
- 0
- 0
i'm trying to learn some php, my site is getting really cumbersome to manage, and gets worse as i add to it. i figure php would be great, but i cant seem to find any good places to learn. sure, there are tons of sites, phpnuke, php.net, phpbuilder, etc etc, i've been to them all and all the tutorials i find are horrible. they are either way too short and simplistic, or they are way too in depth and have a bunch of stuff i dont care about. i have been learning C lately, and have been involved with programming on and off for a couple years now. i KNOW what a variable is. i KNOW what a function is, a constant, etc etc. so i already know alot of php right off the bat. (its very C - like which is awesome since i'm learning C right now)
basically, all the pages of my site are exactly the same. same colors, same table layout, same everything. the only difference is the content in them. i figure i could have the main file, index.php, which calls 2 files, the main layout file, which contains formatting information and whatnot, and then the second file, which is determined by the variable passed to index.php, i.e. index.php?=games.html or just ?=games, whatever. it takes the content out of that file, and formats it all nicely based on the data in the formatting file, and then display it. i know alot of sites must use this type of technique, i am just having a HORRIBLE time finding good information on doing it. like i said, i've looked around at all the big php sites, been to google, i'm at my wits end and thats why i figured i'd ask here (as AT is mostly a hardware forum)
thanks for any info, and oh yeah, site is in the sig
basically, all the pages of my site are exactly the same. same colors, same table layout, same everything. the only difference is the content in them. i figure i could have the main file, index.php, which calls 2 files, the main layout file, which contains formatting information and whatnot, and then the second file, which is determined by the variable passed to index.php, i.e. index.php?=games.html or just ?=games, whatever. it takes the content out of that file, and formats it all nicely based on the data in the formatting file, and then display it. i know alot of sites must use this type of technique, i am just having a HORRIBLE time finding good information on doing it. like i said, i've looked around at all the big php sites, been to google, i'm at my wits end and thats why i figured i'd ask here (as AT is mostly a hardware forum)
thanks for any info, and oh yeah, site is in the sig