23
Jan 06

PHP Includes!

Have you ever found out about something that would have made your entire life so much easier? I had this experience recently with the concept of building websites using PHP includes.

In a nutshell, PHP includes allow you to build webpages using modular sections or code blocks.

PHP is, of course, a server-side scripting language, which means it can be used to create dynamic content for the web. With PHP you can interact with other applications on the server as well as do things like set cookies, process forms, store input in a database, etc. That’s great stuff, but most people may not need to take advantage of that. The thing most people need to know about is the use of PHP for creating multi-page websites using includes. One of the biggest problems (if you don’t use PHP) is making changes to an entire site. Let’s say for example you have a website with hundreds of individual pages. Without includes, you would have to download and edit each of those files to reflect the new changes. Even if you did some find-replace mojo, you’d still have to edit each of those pages and reupload them to the web server. But, if you use includes you could create a template that each page would use. When you needed to make changes you would simply change the content of the particular include. So, for example, any page on a site could be arranged like this:

header include (separate file like header.inc.php)
content
footer include (separate file like footer.inc.php)

To change the navigation in the header across the entire site, you would just alter the header.inc.php file instead of having to download and change each separate page.


21
Jan 06

Untitled

cell2


20
Jan 06

Hamster, snake best friends

Hamster, snake best friends at Tokyo zoo:
TOKYO –Gohan and Aochan make strange bedfellows: one’s a 3.5-inch dwarf hamster; the other is a four-foot rat snake. Zookeepers at Tokyo’s Mutsugoro Okoku zoo presented the hamster — whose name means “meal” in Japanese — to Aochan as a tasty morsel in October, after the snake refused to eat frozen mice.

440w


18
Jan 06

Is your man on the floor? If he ain’t, let me know.

I’ve had that song in my head for days. And, I like it. Please go away, Chris Brown.


16
Jan 06

My great grandfather in the Sanitarium



My great grandfather in the Sanitarium, uploaded by letterneversent at 17 Jan ’06, 5.28am PST.

…for tuberculosis.


16
Jan 06

Flickr Set: Fort Worth Stock Show Parade



Brightly colored stage coach, uploaded by letterneversent at 15 Jan ’06, 3.49pm PST.

I went to the parade on Saturday morning in downtown Fort Worth. It was a beautiful day and it was nice to see all the animals and people dressed up. I forgot how much I loved marching bands, especially the drums. Here’s a guy riding a longhorn:

Man riding longhorn


13
Jan 06

The kind of thing only I should be worrying about

I’m about ready to toss the current “look” of the site. I’m going to strip out the current theme and stylesheet and start with the basics. The cluttered nature of the site is really bothering me more and more lately, so here’s the plan:

1. Completely strip out the current styling. Reduce everything to the WordPress markup.
2. Keep two-column layout arrangement with some sort of header
3. Markup will contain only arrangement of DIV’s and content.
4. Develop new stylesheet

How the new theme will be different:

1. Main content (both columns) should fit within 700px or less.
2. Color pallette should be black and white, specifically black text on white.
3. Design will contain my own original drawings and art work. I want to create a more humanistic feel.


12
Jan 06

Roxette hair

Sometimes people are stuck in a state of suspended fashion animation. Spikey Roxette hair is still big in Dallas having survived since the late 1980’s. I have at least ten confirmed sightings including a jogger this morning on my way to work. Most of the women I’ve seen sporting spikey do’s have been in their mid to late forties, which seems about right. They found a style that worked for them and have been wearing it for twenty years. If you’re going to be anachronistic go out on a limb; wear a peruke or tight flapper curls. I always thought it would be neat to kick it way old school: 17th century breeches, powdered wig, and tri-corner hat. There has to be a market for this. Why are we stuck in the same old pants and shirt paradigm?


10
Jan 06

The Last iPod Video Guide You’ll Ever Need

The Last iPod Video Guide You’ll Ever Need

Student Life on the Facebook via waxy.org


09
Jan 06

The Whore of Babylon

When they coined the phrase, “everything is bigger in Texas”, they were talking about Dallas.

Everything here is bigger and ten times more (insert adjective) than anywhere else. Right off of the highway you’ll see Silver City, a huge “gentleman’s club”, which appears to be at least two stories tall. Further downtown you’ll see signs advertising “the world’s largest gay adult video store”, the world’s largest condom store, etc. Most of the major highways have at least ten lanes. Even the McDonald’s restaurants are enormous. Near Valley View mall, there is even one shaped like a giant happy meal. I’m not kidding.

Dallas is Babylon. It is a world of extremes existing in an uneasy cease-fire. It is a modern gold rush town complete with throngs of pious Christians and painted, fallen men and women puffy with plastic surgery. In Dallas, there are multi-million dollar mansions blocks from low-income apartments and methadone clinics, giagantic churches next door to 10,000 sqare foot liquor stores with fifty foot neon cowboys.

One day, not knowing my way around, I drove a few streets south of Uptown and got stuck behind two guys in a truck buying crack cocaine. As shiny expensive cars passed overhead on the tollway, I felt my first pangs of love for this beautiful, ugly city.