Website Development

PHP Password Protection

September 20, 2005

Learning how to use Password Protection with htaccess and htpasswd files can make it very easy to protect a large website, without modifying anything or playing with sessions. In this tutorial I'll show you just how to do that, and how to easily add users to the htpasswd file. htaccess AuthName "Restricted Area" AuthType Basic [...]

Read the full article →

PHP HTML Email Sender

September 19, 2005

Tired of the same old boring text newsletter? Well send your next out in HTML using this PHP script. The Code <? $theboundary = md5(uniqid("")); $header = "From: \"$fromname\" <$fromemail>"; $header .= "\nMIME-Version: 1.0"; $header .= "\nContent-Type: multipart/alternative;"; $header .= "\n boundary=\"----=_NextPart_$theboundary\""; $header .= "\nX-Priority: 3"; $header .= "\nX-MSMail-Priority: Normal"; $htmlmessage = file_get_contents("htmlemail.html"); $textmessage = [...]

Read the full article →

Content is King

September 17, 2005

Search engines account for massive traffic on the internet today. If someone doesn't know about an area of life, they can simply search and find it. To be on the receiving end of this traffic, you first need content. The type of content you need depends on the type of website you are running. Take, [...]

Read the full article →

PHP Image Sizes

September 13, 2005

You might need the size of an image for many reasons - in this tutorial I'll go over the simple task of getting this information. The Code <? $info = getimagesize("image.gif"); $width = $info[0]; $height = $info[1]; $type = $info[2]; $attr = $info[3]; ?> The function getimagesize returns an array with 4 values. I've written [...]

Read the full article →

Uploading with PHP

September 12, 2005

There are all sorts of cool things you can do with a file upload script - upload banners for a banner rotator, upload avatars for a forum, upload zips for a download site, the list goes on. You may not have realized it, but uploading in PHP is very easy. Here we'll go over the [...]

Read the full article →

Tim Linden Announcements

September 12, 2005

You may have noticed the new front page for Tim Linden DOT COM. This is where all announcements will go, that need to be there for some time. You see the blog, the front page info goes away as I post. So previously, I wouldn't post for a while after an announcment I wanted people [...]

Read the full article →

PHP URL Rotator

September 11, 2005

With a URL Rotator you can advertise one URL, and spread the traffic over multiple sites. Or if you have a database of websites, you could make a "Random Site" link - a fun thing to use with blogs. The Code <? $global_dbh = mysql_connect("localhost","username","password"); mysql_select_db("mydatabasename", $global_dbh); $query = "SELECT * FROM `urls` ORDER BY [...]

Read the full article →

PHP Banner Rotator

September 10, 2005

So you've worked hard on your website, and now you want to rotate banners on your website and generate some cash. It's time for a PHP Banner Rotator! This code sample assumes you have a table named "banners" with at least two fields "SiteURL" and "BannerURL". Which, shouldn't need explaination as to what they are. [...]

Read the full article →

PHP Cron Jobs with cPanel

September 9, 2005

Running PHP scripts automatically can have some big benefits. You can wait to have things get done when there is less traffic on your server, or you can ensure daily tasks get done on time. cPanel Simple Cron Even if you do not know anything about cron jobs, and have never run a cron job [...]

Read the full article →

PHP Email Verification

September 7, 2005

If you have any type of website where a user signs up and enters an email address, you must verify that this is in fact their email address. Otherwise, you could find yourself in trouble for emailing someone who didn't want you to email them. These code snippets are only a portion of what you'd [...]

Read the full article →

More Photos Coming

September 4, 2005

More Photos are Coming to the Tim Linden Photos section. I've just commented on a bunch of them, and uploaded a bunch more.

Read the full article →

Creating a Google Sitemap

August 29, 2005

The Google Sitemaps service simply allows Google to learn your website structure, and improve the way they crawl your site. The sitemaps you generate will contain the last modified dates, priority, and frequency. This tells Google what pages need to be re-crawled and how often to re-crawl them. It is a very simple process: You [...]

Read the full article →

CLiX Directory

August 28, 2005

I have been working on a new script that I will be selling soon. The script is called SCRIPTMAN Links Directory. It will allow you to run your own Links Directory which has a couple of benefits. You can sell sponsored links, and it can increase traffic to your site. The cost will be $75, [...]

Read the full article →

Building a dynamic site - Part 3

August 24, 2005

With any dynamic site, you'll need a page that links to all your dynamic pages. The main index. If you visit the many pages on CLiX Network, there are actually many versions of these index pages that all are sub categories of the main front page. <? $global_dbh = mysql_connect("localhost","username","password"); mysql_select_db("mydatabasename", $global_dbh); $query = "SELECT [...]

Read the full article →

Paul D Mills

August 13, 2005

Check out the brand spanking new website of Paul D Mills, the Piano guy. www.pauldmills.com

Read the full article →

Comments Work Again & More Updates

July 12, 2005

Just letting you all know that the comments feature works again, so please comment away. You'll have to create a free account on this website to do it though, it is free and easy. They wont sell your email or nothin! You'll also be able to use it to post to Jimmy's Blog, and two [...]

Read the full article →

Logging in with Sessions

July 7, 2005

Creating a basic password protected area can be such a usefull tool on your website, but learning how to use sessions effectively can be difficult. I hope that by the end of this tutorial you'll know all you need to know to get your own password protected area up and running. The login.php Code The [...]

Read the full article →

SCRIPTMAN php scripts

July 1, 2005

In the near future I will be releasing scripts under the trademark of SCRIPTMAN. For instance, SCRIPTMAN Traffic Exchange, SCRIPTMAN URL Rotator, etc. If you see a SCRIPTMAN script, it will be a script built by me. I have thought about officially registering the trademark, SCRIPTMAN, but the price outweighs the benefits. I did a [...]

Read the full article →

PHP Image Resizing

June 26, 2005

In this tutorial, I'll quickly go over how to resize images with PHP. To do so is pretty simple: Open the image to be resized, create a new image of the new size, and copy the resampled image over. The Code <?php header('Content-type: image/jpeg'); list($w, $h) = getimagesize($filename); $resized = imagecreatetruecolor($width, $height); $original = imagecreatefromjpeg($filename); [...]

Read the full article →

PHP Image Distortion

June 25, 2005

In my article, PHP Image Code Verification, you may have noticed that it would be quite easy for a computer to read the code images, and enter the verification code automatically. In this article I will show you how to prevent this from happening by inserting random pixels to confuse the computers. While this is [...]

Read the full article →