Lookee!

2005-Jan-01, Saturday 02:17
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
[personal profile] matgb
http://www.taktix.org/test.php

What's so good about that you ask? It hasn't got anything new and the links don't all work.

Simple says I. Look at the domain name carefully. It's PHP generated! Yippe ki yay! I've taught myself php :-D

test.php has 8 lines of code total, but it inserts 7 separate elements, each of which is independently updateable.

That means there's a small chance I may get around to doing more to the site from now on.

Oh yeah, my old monitor flickered and started smoking late last night (if it hadn't I'd have done this post yesterday before bed), so I went to Staples on a mission and am now the proud owner of a flat screen. I considered buying a new laptop, but have decided to teach myself how to build a system from scratch instead. Too much megatokyo perchance?

Um, anyone out there that knows how to build PCs, feel free to tell me where to, um, start. I'm not really much of a techie...
Depth: 1

Date: 2005-Jan-01, Saturday 03:38 (UTC)
ext_28008: (Default)
From: [identity profile] mapp.livejournal.com
I'm going back to Exeter on the fourth. If you want to meet up at some point and either sit in front of a computer or, perhaps, go down to the PC World (it's evil, but they do have buckets of parts), then I'm game for it...
Depth: 2

Date: 2005-Jan-01, Saturday 04:41 (UTC)
From: [identity profile] harlotqueen.livejournal.com
You are aware that PC World in Exeter are now on Rydon Lane (by the big Tesco)

Most connections in modern PC's are colour coded now to make thinks easier
Depth: 3

Date: 2005-Jan-01, Saturday 05:04 (UTC)
ext_28008: (Default)
From: [identity profile] mapp.livejournal.com
Most connections in modern PC's are colour coded now to make thinks easier

I taught my brother about how to put together a computer by pointing out that most cards will only fit in one kind of slot, and providing you don't try and force anything in, you won't go too far wrong.

The only difficult bits are, in my opinion;
1) Connecting drives. I always forget, for some reason, to link them together in a sensible order. Whoops.
2) Making sure you've got the right motherboard for your RAM and processor.
3) Not cutting yourself on the sharp bits inside a computer.
Depth: 4

Date: 2005-Jan-01, Saturday 05:06 (UTC)
From: [identity profile] harlotqueen.livejournal.com
*agrees with 3*

Athlon Fans are a bitch!
Depth: 5

Date: 2005-Jan-01, Saturday 06:03 (UTC)
ext_28008: (Default)
From: [identity profile] mapp.livejournal.com
My family have a tendency to ask awkward questions like: "When the computer technician came round to fix our computer, he noticed lots of bloodstains inside the case."

Important note; do not tell family that you sacrifice chickens to the Machine.
Depth: 1

Date: 2005-Jan-01, Saturday 06:00 (UTC)
From: [identity profile] johnwordsworth.livejournal.com
Hey Mat, if you ever want any help with either PHP or putting a PC together - feel free to prod me, I've been doing both now for far too much of my life...

My only real PHP tip is - RTFM. No - seriously, the function reference on the php site (which you can download in 'windows help format') really is everything you will ever need once you understand the logic behind functions etc.

As for putting your own PC together, the hardest part now-a-days is simply making sure you've bought all the bits, and that they are the right bits. Ensure that the speed of the RAM and that the processor clock speed is supported by your motherboard, and be sure not to forget something tiny like the Fan, the thermal grease or a power cable if the case doesn't come with one...

If you want me to come round and give you a hand sometime - just give me a prod, I'll gladly help out in any way that I can.
Depth: 1

Date: 2005-Jan-01, Saturday 16:18 (UTC)
From: [identity profile] sinju.livejournal.com
Hooray for Pulp :)

And congrats on learning php, I wouldn't know where to start with that...
Depth: 3

Date: 2005-Jan-02, Sunday 16:16 (UTC)
From: [identity profile] johnwordsworth.livejournal.com
Tip (Something I do on ALL my websites)
The most simple type of template system (where you can have every page on your site change with one edit), is only on more step from what you've already got...

Have a "_content.php" file that defines 2 functions "printPageStart()" and "printPageEnd()". They would look something like...

";
include("header.htm");
}
?>

Then in any file you want to fit into the template, you just have to include....



Really sorry if this sounds at all preachy. I wanted to just write it out as an explaination, but I realised it was much easier just to write some sample code so you could see what I mean.

The only advantage of doing it this way instead of having a bunch of include(html) lines in your code is that if you decide that you want to also have another include() (say you want to have a side bar or something), you don't have to go through every file to add it, you just change your printPageStart() function. Again, hope this is actually useful, and not just a load of worthless crap ;)
Depth: 1

Date: 2005-Jan-02, Sunday 16:19 (UTC)
From: [identity profile] johnwordsworth.livejournal.com
Sorry, Live Journal stripped all the good bits... printPageStart was SUPPOSED to look like...

<?php
function printPageStart( $pageTitle ) {
echo "<html><head><title>$pageTitle</title></head>";
include("header.htm");
}
?>

(Dear lord - that was a mission to write in!!)

Profile

matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
Mat Bowles

September 2021

S M T W T F S
   1234
567 891011
12131415161718
19202122232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 2025-Jul-06, Sunday 15:48
Powered by Dreamwidth Studios