My first Web site
Sunday, July 12, 2009 12:19:40 PM
So, I finally got myself a domain name, Web hosting service and free time which resulted in this:
I've done all the markup with help from Robert with the PHP scripts. I particulary like to script that fetches automatically my latest blog posts from here. 
How does the site look on your screen? Do you see any bugs or things just out of place? I'd appreciate if you could report it here so I can look into fixing them. 
I'm leaning toward implementing Chyrp as a basic CMS, but if you have any other suggestions, please let me know. 







Tri M. NguyenTriMN # Sunday, July 12, 2009 12:33:29 PM
It looks perfect(or should I say, very neat) on my 22" LCD
Chyrp is a good lightweight CMS. If you want some heavy shit, you can get Joomla! I "expect" you're ain't gonna do some heavy bloggings on this page so Wordpress won't be an alternative(eller hur?)
Oh, and I spotted an intersting CMS yesterday. Haven't tried it yet but you could give it a try. It takes about 6 KB, txt CMS http://cms.thewikies.com/
Mad Scientist (عادل)qlue # Sunday, July 12, 2009 12:58:55 PM
I'm interested in the script for the feeds. I'd like to implement something like that myself.
Robert Jacobsenrobertj # Sunday, July 12, 2009 2:29:56 PM
Espen, the only bug I see is that you link to ipwn.se instead of robertjacobsen.net
Awezum sait!
~ Robert
Espen André ØverdahlEspenAO # Sunday, July 12, 2009 2:39:19 PM
Originally posted by TriMN:
Looks good! Thanks for the tip. I'll definitely check it out.Noob question: I have elements (e.g. the footer and the menu) I want to be displayed on all pages. What's best way to do this? Create scripts and embed into every page? Right now I just copy/paste the code to each page.
agony # Sunday, July 12, 2009 2:43:00 PM
Tri M. NguyenTriMN # Sunday, July 12, 2009 2:49:47 PM
I made this simple script for my site: http://trimn.net/media/php/include.phps it's placed at the content area in the index file. By default it'll include my profile.php file. Headers, menus and footer are static. They're surrounding this script in the index file. My links is somthing like this: trimn.net/?p=cv (notice the ?p= and the $_GET['p'] part in the script
... But the CMS _might_ help you with this part.
Robert Jacobsenrobertj # Sunday, July 12, 2009 6:44:59 PM
Robert Jacobsenrobertj # Sunday, July 12, 2009 6:55:20 PM
Angelikiellinidata # Sunday, July 12, 2009 7:10:08 PM
This is great!
" a domain name"
so now you are "Master of your Domain! "
I don't know if Seinfeld is known in Europe...
http://en.wikipedia.org/wiki/The_Contest
Dark FurieFurie # Sunday, July 12, 2009 8:00:47 PM
Dark FurieFurie # Sunday, July 12, 2009 8:02:05 PM
Angelikiellinidata # Sunday, July 12, 2009 8:20:08 PM
Robert Jacobsenrobertj # Sunday, July 12, 2009 9:06:21 PM
Originally posted by ellinidata:
It is. known, yes. At least in Norway it went in prime time like 15 years ago. Although I never was a huge Seinfeld fan.
Originally posted by Furie:
They are linking to #, which is a pretty standard way of doing placeholder links, so I would assume it's intentional.
Angelikiellinidata # Sunday, July 12, 2009 9:11:34 PM
Tamil # Monday, July 13, 2009 3:57:21 AM
Espen André ØverdahlEspenAO # Monday, July 13, 2009 8:30:09 AM
Originally posted by Furie:
They don't work yet because it's nothing there. They're just placeholders for now.Dark FurieFurie # Monday, July 13, 2009 9:52:12 AM
Tri M. NguyenTriMN # Monday, July 13, 2009 12:11:25 PM
Charles SchlossChas4 # Monday, July 13, 2009 7:52:12 PM
Robert Jacobsenrobertj # Monday, July 13, 2009 11:55:41 PM
Tri M. NguyenTriMN # Tuesday, July 14, 2009 12:15:43 AM
(I did
Robert Jacobsenrobertj # Tuesday, July 14, 2009 7:03:01 AM
<?php $p = $_GET['p']; if(isset($p) && $p != "index") { if(!file_exists("$p.php")) { // 404 error handling or something } else { include "$p.php"; } } else { include "standard.php"; } ?>Dustin WilsonKhadgar # Tuesday, July 14, 2009 2:25:04 PM
<? require_once("$p.php"); require_once("standard.php"); ?>Robert Jacobsenrobertj # Tuesday, July 14, 2009 2:53:39 PM
Also worth noting: you can require_once("$p.php"), while you cannot require_once('$p.php'). This is due to the single quote not escaping characters, resulting in the require script attempting to to include the file $p.php instead of what $p was pointing to. This goes for everything in single quotes.