Redirecting in php

Posted August 12th, 2010 by
Categories: Misc

I was looking for a redirect code and found one. I’ll add it here so I’ll not lose it and maybe someone else can use it.
{php}
http_redirect("http://www.yoursite.com");
{/php}

Floating an Image Outside a Container

Posted April 12th, 2010 by
Categories: Coding, Lessons Learned

.floating-image
One of my recent issues was that I needed to extend an image outside a DIV container, and spill out into another one, like is shown in the picture. I was able to accomplish this by manipulating the margin values in CSS as such:

#div {
margin-right:-60px;
}

You may need to adjust the top/bottom to achieve what you want. In order for things to work right in Internet Explorer, you will need to add this in the image tags:
style=”float:right;” src….

Extending a Sidebar All The Way Down

Posted November 7th, 2009 by
Categories: Coding

This is an issue I’ve had some trouble with, and finally spent some time to figure it out.

The problem is, when trying to make a sidebar, the sidebar would not extend all the way to the footer unless there was content in it. In order to fix this, you need to do two things in your CSS.

1st, you must define your body to have a height of 100%. Then, in your sidebar div you then define that with a height of 100%. YOU MUST BOTH OF THESE. Here is what it should look like:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
/* Allow IE/Win to resize the document */
font-size: 80%;
color: black;
background: #ffffff;
margin: 0;
padding: 0;
border: none;
height: 100%;
}
#sidebar {
width: 340px;
float: left;
clear: both;
margin-bottom: 4em;
padding: 20px;
height: 100%;
}

Site Hacked

Posted June 27th, 2009 by
Categories: Misc

It’s happened before, and I’m certain it will happen again – one of my sites got hacked. This time it was a Wordpress blog, similar to this. I was wondering why I was getting ads for Viagra showing up and didn’t have anything relevant to that posted. After viewing the page source, tucked away in the footer of my blog were hundreds of links to far eastern websites selling knock-off drugs.

Word to the wise: Keep secure, and keep an eye on your websites.

Website Review – Mybestratedwebhosting.com

Posted March 2nd, 2009 by
Categories: Webhosting

I was recently approached to do a review of the web hosting related website – www.mybestratedwebhosting.com. At first I thought this was a web hosting website but it is actually a blog that dives into the best of web hosting companies.

I’ve seen plenty of blogs that like to whip together a few posts and call themselves a web hosting blog, this site appears to go a lot further in putting together detailed information about many different web hosting outfits so that the user can determine which hosting firm will best suit their needs. Although not a site I will bookmark, or perhaps even ever visit again, I found it quite informative. I learned that the Best Ecommerce Hosting Company is not what I thought it would be.

I was surprised to see POWWEB listed as #2 in the Top 5 Budget Hosting companies. When I built my first website, I hosted it on POWWEB and thought they sucked. Maybe if you need a dedicated server, or only have one site you’re running.

There were other articles that stood out such as the one that talks about Top Small Business Web Hosting.

As for the layout of the blog, I found it easy to navigate and plenty of archives to read from. For a webmaster who may be in the market for a new web host, mybestratedwebhosting.com is an excellent blog to read through.