Latest Photo Album Pages


Curved iMac

View Photo Album

Blog Articles

Site Updates

Evan - 1:08 PM - Monday Aug 2008
I have decided that because I am updating the blog that I might as well update the site's look as well. It will look about the same but instead of using JavaScript to round some of the corners I'm going to use images.

I'll also get rid of these ugly boxes that the articles and comments are in and replace them with something a little more tolerable. And maybe I'll make the sidebar less plain.

The blog will be moved to the home page and the photo album will be removed.

While I'm at it I should make the site 100% W3C compliant...

Article Page | Comments (0)


SPAM

Evan - 9:39 AM - Friday Aug 2008
Seems like the moment I enable blog comments I get a mess of spam posts. I'm going to switch to Word Press simply because I don't have time to fix this blog's script...



Article Page | Comments (0)


Blog Comments Fixed

Evan - 10:30 AM - Wednesday Aug 2008
OK, I just found out that comments didn't work because of a little code typo. I fixed it and you should be able to post comments now.

Article Page | Comments (0)


Use PHP Generated Content in a HTML file

Evan - 1:42 PM - Monday Jun 2008
Using PHP generated content in a .HTML file is pretty easy to do it is a lot like inserting a javascript file, in fact, it is almost exactly like inserting a javascript file!

First create a file called test.html and put this code inside it:

<html>
<body>
<script type="text/javascript" src="test.php?msg=Hello World!"></script>
</body>
</html>


Now create a second file called test.php and put this code inside it:

<?php

$msg = $_GET['msg'">;

echo "document.write('$msg');";

?>


Now upload both file to your web host or you can run them on your local server. If you open test.html in your web browser you will notice the words Hello World outputted to the screen.

You have just witnessed how easy it is to use a PHP as as if it was a javascript file. This method is particularly useful for hit counters and including things on non-PHP pages.

Now upload both file to your web host or you can run them on your local server. If you open test.html in your web browser you will notice the words Hello World outputted to the screen.

You have just witnessed how easy it is to use a PHP as as if it was a javascript file. This method is particularly useful for hit counters and including things on non-PHP pages.

Article Page | Comments (1)


School's Out!

Evan - 6:56 PM - Sunday Jun 2008
I am finally done with school, for the summer at least. My school has no "excused absences" you only can miss a certain amount of days in a semester.

I actually have 3 days of school left but because I have 5 absences left I can skip the last few days of school without hurting my grade at all!

Article Page | Comments (0)


90 Degrees in June?

Evan - 11:57 AM - Friday Jun 2008
It has been waaay too hot in these recent days for Michigan in June. Here is a chart of the monthly averages.



The average high for June is 77°, it is 90° today and it is only June 6th!

Article Page | Comments (0)


Alternative way to Include CSS

Evan - 6:26 PM - Friday May 2008
The traditional way to include an external CSS file is to do something like this:

<link rel="stylesheet" type="text/css" href="file1.css" />

But most people don't know that there is another, easier way to do it. Shown below:

<style type="text/css">
@import "file1.css";
</style>


This method works exactly the same as the first one, just another way of doing it. This method is very useful when you have to include multiple CSS files. Example:

<style type="text/css">
@import "file1.css";
@import "file2.css";
@import "file3.css";
</style>


Much easier and cleaner than typing it the old way:

<link rel="stylesheet" type="text/css" href="file1.css" />
<link rel="stylesheet" type="text/css" href="file2.css" />
<link rel="stylesheet" type="text/css" href="file3.css" />


NOTE: This works in all of the major web browsers.
- Evan

Article Page | Comments (0)


XML to Array and Back

Evan - 7:51 AM - Sunday May 2008
In my search to try to find a better, more flexible way to store information I decided that using XML was a good idea. I quickly found that reading and writing XML was easy, but when you had replace or modify XML then you ran into a problem.

After a lot of searching I found this nice script on blogspot: Link

What it does is it converts XML to a PHP array and back into XML, so if you need to replace some XML then you just have to use the script to convert it to an array, then loop through the array and replace/modify anything you need to and then convert it back into XML!

This was a lifesaver for me and I hope it may help someone else out too.

Enjoy!

Article Page | Comments (2)


Keep Your Copyright Up To Date

Evan - 8:31 AM - Friday Mar 2008
Have you seen those web sites that have a something like "Copyright MyName 2005"? We as web designers don't want that so all you have to do is put this code in the place of your copyright at the bottom of your page.

&copy; <?php $y = date("Y"); echo "$y Your Name"; ?>

Or you could do this:

&copy; <?php echo date("Y"); ?> Your Name

If you have a site that has been around for a while, like this one then you could do this:

&copy; 2006 - <?php echo date("Y"); ?> Your Name

It's that easy to keep you copyright up to date!

Article Page | Comments (0)


Make a Scrolling DIV

Evan - 3:42 PM - Monday Mar 2008
Ever wanted to make a box that was always a constant width and height no matter the content inside it? Kind of like a iframe but a frame won't work, you just want to use a regular SEO friendly <div>.

It is actually very easy to do. Here is the code:

<html>
<head>

<title>Scrolling DIV</title>

<style type="text/css">
#box{
border: 1px solid black;
width: 200px;
height: 70px;
overflow: auto;
}
</style>

</head>
<body>

<div id="box">
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7<br />
8<br />
9<br />
10
</div>

</body>
</html>


Nothing too amazing here just a 200 x 70 px box with a black border. It's the line overflow: auto; that makes the <div> scroll when the content tries to flow out of the box.

Here's a live demo > Link

One use for this could be a shout box in your site sidebar.
Hope this was helpful!

- Evan

Article Page | Comments (0)


Curved iMac

Evan - 7:58 PM - Friday Feb 2008
Quoted from Engadget:

"You don't have to venture very far to dig up unofficial concepts for Apple products of all sorts, but this one from designer Nuno Teixeira is certainly more attention grabbing than most, even if it isn't any more realistic. Dubbed the "iMac iView," the main distinguishing feature here is obviously the curved screen, which isn't actually all that far out there, but still a ways from becoming anywhere near commonplace. As if that wasn't enough, the concept also boasts a second screen on the rear (pictured after the break), and webcams on both the front and back, which would finally let you have impersonal conversations with the person sitting right across from you."





I think the curved screen is a good idea but I think the screen on the back is just plain ridiculous. I just want a curved wide-screen for my windows rig for some awesome gaming.

-> Original Article

Happy leap day everyone!

Article Page | Comments (0)


CSS Tool Tip

Evan - 10:28 AM - Saturday Feb 2008
You know those little boxes that pop up when you hover over some text with a dashed line under it? Those are called tool tips and they are usually made with Javascript, but not this one. In this article I will show you how to make a completely CSS tool tip without any Javascript.

Read Full Article | Comments (0)


Lunar Eclipse

Evan - 8:50 AM - Saturday Feb 2008
We had a Lunar Eclipse on Wednesday and I got some photos. Most of them aren't very good quality because I didn't have a tripod and I was shaking the camera a little, (it was cold, very cold) so I only uploaded the best one.



The moon really did have an orange glow to it like shown above

Article Page | Comments (0)


A+ Certification

Evan - 2:21 PM - Wednesday Feb 2008
I just got my CompTIA A+ certification on Monday so now I am a officially certified Computer Technician! The I completed the second test on Monday and the first one back in late January.

Article Page | Comments (0)


Blog Now Open

Evan - 6:37 PM - Tuesday Feb 2008
I just added this blog to EvanBot.com! Here you will find news and updates on my websites as well as articles on PHP, HTML, CSS, ect...

I coded the PHP script that runs this site myself because I refuse to use WP and I like the way this works better.

- Evan Byrne

Article Page | Comments (0)


Tags

CSS (3)
EvanBot.com (4)
Off Topic (1)
Off-Beat Science (1)
PC Hardware (1)
Personal News (2)
PHP (3)

Latest Comments

Evan at 10:27 AM - Wednesday Aug 2008
Use PHP Generated Content in a HTML file

Tyler Menezes at 2:48 PM - Wednesday Aug 2008
XML to Array and Back

Evan at 9:36 AM - Friday Aug 2008
XML to Array and Back