Notice: You have been identified as a bot, so no internal UID will be assigned to you. If you are a real person messing with your useragent, you should change it back to something normal.
Anonymous A started this discussion 14 years ago#17,279
Where can i read about how to do that? Having database content displayed in html files? in the html files it has something like {{board_list}} then when you visit that page that is replaced with an actual list of boards generated by a php function.
r04r !GETFUCKED joined in and replied with this 14 years ago, 5 hours later[^][v]#292,271
It's called templating. The {{}}'s remind me of http://mustache.github.com/, but it could be a simple string replace just as well.
The idea is that you have your code fetch all the data, put it into an array and give that array to the template which will then create the output using the data provided.
vocalon !:3faggot joined in and replied with this 14 years ago, 5 hours later, 11 hours after the original post[^][v]#292,317
While Tinyboard uses templating to do this, I also believe there's a trick with Apache to make it read HTML files as PHP.
Anonymous D joined in and replied with this 14 years ago, 3 minutes later, 11 hours after the original post[^][v]#292,319
@previous (vocalon !:3faggot)
Why the fuck would you want to do that.
vocalon !:3faggot replied with this 14 years ago, 4 minutes later, 11 hours after the original post[^][v]#292,322
@previous (D)
I dunno, it was just something I encountered.
Anonymous D replied with this 14 years ago, 8 minutes later, 11 hours after the original post[^][v]#292,327
@previous (vocalon !:3faggot)
It's a stupid thing to do, why not just rename the html to php files so the web server parses it correctly.
vocalon !:3faggot replied with this 14 years ago, 17 minutes later, 11 hours after the original post[^][v]#292,329
@previous (D)
Like I said, I dunno. I thought I'd just put it out there.
TheSheep !kJ.A4PF7.k joined in and replied with this 14 years ago, 12 minutes later, 11 hours after the original post[^][v]#292,337
Set up the .htacess file so *filename*.html URLs open *filename*.php lol... should be possible...
HaikerensGuide !0VegJ9Jl.Q joined in and replied with this 14 years ago, 7 hours later, 19 hours after the original post[^][v]#292,529
try the echo tag
Anonymous G joined in and replied with this 14 years ago, 3 minutes later, 19 hours after the original post[^][v]#292,532
Just dynamically generate the file and then redirect the user to it.