Fun Stuff > CLIKC
QC website
trolley:
Hello there, my lovely QC chaps.
Could some friendly soul please tell me what kind of (insert techie name here) Jeph uses to display the comics on the the QC site. I assume it some kind of database thingy that fills a basic page with the comic strip and associated newspost, but I'm wanting to know the actual technique, and if you're feeling really nice, a good place where I would be able to learn it.
I'm pretty good with HTML and CSS, so any help would be absolutely awesome.
Cheers you juys!
BlueCoatKarma:
A look at the source of the page shows it's using PHP. I know nothing about that, other than that it has something to do with scripting server-side databases.
Your avatar is cool.
lb969:
Its a PHP module. Probably custom shaped to fit comics.
It stays the same, all he does is put in a new pic link, and text and it automatically creates the archive page.... (speculation based on a PHP admin)
Or he just makes a new page and text every day, and adds the archive manually.
MilkmanDan:
PHP. The best place to learn it is probably http://www.php.net That has tutorials and definitions of every function / procedure. How does Jeph's work? Well, when you're browsing the comics the URL is '.../view.php?comic=x'. The PHP script gets the 'comic=x' bit of the URl because putting it after the '?' makes it a GET variable. I don't know exactly how it's set up, but I imagine it gets the newspost and date from a MySQL database, and pus in an image with the SRC '.../comic/x.png'. The PHP script plugs them into a basic template that formats these items into the HTML page you see before you. It migh use a dedicated template engine, eg Smarties, or it might be custom written. On the archive page the PHP gets the comic title as well from the database.
Yeah. Most of that was just me guessing, but it'll be something pretty similer.
trolley:
Cheers fellas.
Navigation
[0] Message Index
[#] Next page
Go to full version