Archive for September, 2007

Green logo design with a reflective effect and a Navigational bar

Sunday, September 30th, 2007

The source site for this is: http://www.milanogw.net/work/troxo

Logo Design Idea

This nice green logo is created using a simple, boxy, italic font. A small customization is applied to the letter R and two lines are added to the right of the text, finished up with a reflective effect.

I also must mention the top navigational bar, I really like the way it is “hanging” from the top and the green and gray color combination that is used on it with the reflective effect.

Navigation design with diagonal lines, green and gray

Sunday, September 30th, 2007

The source site for this is: http://www.milanogw.net/work/troxo

Navigation Design Idea

Diagonal lines, grays and greens look awesome. This is a very nice design. I love it. That do you think? What can be added? I can’t think of anything.

Gray diamonds website background pattern

Saturday, September 29th, 2007

The source for this one is: http://www.orangeonweb.com

Another background gray pattern. Looks nice with the orange and other bright colors on the webpage.

Gray Diamonds Website Background Pattern

Narrow & long layout with nice header and crest logo

Saturday, September 29th, 2007

The source site for this is: http://cabanadigital.com

Glossy, Crest Type Logo Idea

This is a unique site, the crest like logo with the glossy effect on the rays of light shining from below, the header design and the entire layout is not like much I’ve seen. It is narrow and long. I like the header and the footer with the silhouetes of “vegetation” and flowers.

Simple mail function in PHP

Saturday, September 29th, 2007

Here is a quick PHP email function. Just change the variables to your information and use it.

<?php

$toName = “To Name”;
$toEmail = “toemail@domain.com”;
$fromEmail = fromemail@domain.com;

$subject = “Email Message Subject Text”;

$msg = “Email message text <b>Can be HTML formatted</b>”;

$headers = “From: \”Your Real Name\” <” . $fromEmail . “>\r\n”.
“To: \” . $toName . “\” <” . $toEmail . “>\r\n”.
“Date: “.date(“r”).”\r\n”.
“Subject: ” . $subject . “\r\n”.
“Content-type: text/html; charset=us-ascii”;

mail($toEmail, $subject, $msg, $headers);

 ?>

Sending an email message with ASP

Thursday, September 27th, 2007

Here is how you send email in ASP. This will use the local server as teh mail server so just send a test email to yourself and see if it works on your server.

<%Set objMsg = Server.CreateObject("CDONTS.NewMail")

objMsg.From = "My Name <email@domain.com>"

objMsg.To = "email@domain.com" ' who do you want to send to?

objMsg.Cc = "secondEmail@domain.com" ' who do you want to CC?

objMsg.Subject = "Subject line"

objMsg.BodyFormat = 0

objMsg.MailFormat = 0

objMsg.Body = "Email message goes here"

objMsg.Send

Set objMsg = Nothing

%>

Balanced website design idea

Thursday, September 27th, 2007

The source site for this is: http://www.cravattificio.com

Website Layout Design Idea

This website is very simple and clean. The white background keeps it light and the header graphic balances out the simplicity with a clean, crisp set of photos. The layout of components on the page is elegant, the three-column body looks nice. And I still can’t figure out where tehy set the font for the headings. They have five style sheets and none of them specify the H4 font. If you can find it, could you post it in the comments? I am really curious.

Get size of a file in bytes

Wednesday, September 26th, 2007

Need to know the size of an image or a text file? You can use PHP to get the size of a file in bytes.

<?php$filesize = filesize("local/path/to/file.jpg");

?>

String to Upper or Lower Case in PHP

Wednesday, September 26th, 2007

You can turn any string of text to Upper Case, Lower Case letters. Also use PHP to capitalize the first letter of the string or the first letter of each word in a string.

<?php// Turn entire string to Upper Case Letters
$text = strtoupper($text);

// Turn entire string to Lower Case Letters
$text = strtolower($text);

// Turn first letter in the string to Upper Case
$text = ucfirst($text);

// Turn first letter of every word in the string to Upper Case
$text = ucwords($text);

?>

Simple Cookie script in PHP

Wednesday, September 26th, 2007

Simple cookie script in PHP. Set cookie and get cookie. This is a great way of storing user prefferences, settings and customizations on the site.

<?php// SET COOKIE

setcookie("cookieName1", "cookieValue", time()+60*60*24*30 );
// or do it this way
setcookie($cookieName2, $cookieValue, time()+60*60*24*30 );

// GET COOKIE

$cookie1 = $_COOKIE['cookieName1'];
$cookie2 = $_COOKIE['cookieName2'];

?>