Sunday, December 21st, 2008
Here are some collection of WordPress Code for theme designer, or just enjoy customizing your existing WordPress theme. This should be an easy reference as I consolidate them all into one post.
Recent Posts Display
< ?php query_posts('showposts=5'); ?>
(more…)
Popularity: 5% [?]
Posted in WordPress | No Comments »
Wednesday, December 10th, 2008
Here is a simple php code to hide the image address of our website. It can use to hide url of flash too.
< ?php
$image_path="images/path/to/";
$image_file=$image_path.$_GET['name'];
$sTmpVar = fread(fopen($image_file, 'r'), filesize($image_path));
header("Content-type: image/* ");
echo $sTmpVar;
?>
(more…)
Popularity: 3% [?]
Posted in PHP | No Comments »
Friday, January 25th, 2008
I have an addiction. I can’t help but view source on every nice looking website I see. It’s like if you had x-ray glasses that allowed you to see any person you ever saw in their underwear at will. How could you not?
It’s just so tempting to see if a beautiful website is built with beautiful code as well, or if it’s beauty if only skin-deep. Code? Beautiful? Sure. After all, Code is Art. This is just HTML, so it can’t be quite as intricate and elegant as a dynamic language, but it still bears the brush strokes of it’s creator and there is craftsmanship abound.
It gets me to thinking, what makes beautiful code? In HTML, it really comes down to craftsmanship. It’s all those little things added up that make the whole. Here is a list of just some of the little things that I look for in other’s code and that I try to do myself that make for good craftsmanship in HTML:
(more…)
Popularity: 8% [?]
Posted in Miscellaneous | 2 Comments »