Sep 14, 2008
.htaccess | Tutorials & Resources

Loading ...
Just add the following code to your .htaccess file in the highest folder of your web directory and yor visitors will be forced to use the www version.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.your_domain.com$
RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]
Aug 21, 2008
Code Snippets | PHP | PHP | Tutorials & Resources

Loading ...
Simple code snippet to retrieve remote webpage information, including page title, page description, and keywords
<?php
$url = “http://www.leungeric.com/”;
$fp = fopen( $url, ‘r’ );
$content = “”;
while( !feof( $fp ) ) {
$buffer = trim( fgets( $fp, 4096 ) );
$content .= $buffer;
}
$start = ‘<title>’;
$end = ‘<\/title>’;
preg_match( “/$start(.*)$end/s”, $content, $match );
$title = $match[ 1 ];
$metatagarray = get_meta_tags( $url );
$keywords = $metatagarray[ "keywords" ];
$description = $metatagarray[ "description" ];
echo “<div>URL: $url</div>\n”;
echo “<div>Title: $title</div>\n”;
echo “<div>Description: $description</div>\n”;
echo “<div>Keywords: $keywords</div>\n”;
?>
Aug 18, 2008
Brown | CSS Gallery

Loading ...

The Official Portfolio Of Michael Rei. Offering Professional Website and Graphic Design Services and Consulting.
(Read more)
Aug 4, 2008
Blue | CSS Gallery | Grey

Loading ...

You have arrived into online portfolio of Gianmarco Lauriola. I’m a designer, a musician, and a visionary. I live and work in Helsinki, Finland.
(Read more)
Jul 31, 2008
MySQL | PHP | Tutorials & Resources

Loading ...
Just add below line after MySQL connection is establisted:
mysql_query(”SET NAMES utf8″);
Jul 30, 2008
MySQL | Tutorials & Resources

Loading ...
A simple 3-steps procedure to import/restore large MySQL data file via command line.
A 200mb data file should take less than a minute to complete.
1. Telnet or SSH to server
2. Login to MySQL
mysql -u user -ppassword
3. At MySQL prompt
use your_database_name
source your_sql_data_file.sql
Jul 23, 2008
CSS Gallery | White

Loading ...

Jordan Moore is a freelance web designer from Northern Ireland. He makes nice web experiences.
(Read more)
Jul 16, 2008
Black | CSS Gallery

Loading ...

Anything Designs.com is nothing but we can implement any design just about anything. We have a very good experience in graphic, web, paintings, prints and multimedia designing. Unlike other companies, anything Designs usually deliberate their views in a first attempt to reach a decision. To build up in a success way we will understand our clients and their business and needs in a first met and being in touch we update their projects…
(Read more)
Jul 13, 2008
Black | CSS Gallery

Loading ...

Live San Francisco Nightlife Activity
(Read more)