This theme is downloaded from wordpress themes website.

Archive for the 'PHP Script' Category

Writing a Newsletter Script

I recently started working on a newsletter script.  I have been thinking about important features to be included.  When I start working on a new script I think about all the features to be included, over the next few weeks, I will be displaying the code.  The current feature set includes the following:

  1. Admin Functions
    1. Create a newsletter
    2. Send newsletter
    3. Remove/ Add Users
  2. Users
    1. Add/ Remove
    2. View Previous newsletters

Does this seem complete? Or am I missing a huge feature or something that would make this system easier to use?

PHP Script Bryan 19 Aug 2008 1 Comment

Easy Site-Wide Link Updating

As I have created more websites, I have come to love includes.  They are useful when you need to use one file repeatadly.  For instance, you may want the same navigation scheme across a site.  It would be troublesome, or bothersome to insert you navigation code on each page.

What happens when you add or subtract a page? You would have to change every single page.  9 times out of 10, you always miss at least one page.  There are other situations where using an include would come in handy, but those are more programming oriented.

You will need:

  1. PHP (in this case), or ASP based server
  2. Main Page
  3. Navigation Page

This code requires the use of PHP, on the main page you need  to write, and so this page must end in .php, for example, index.php.  The ending php tells your server it needs to do more work with that page before displaying it.

Whenever you are using a PHP tag, you must enclose it in

<?php **Place Code Here** ?>

On the every page you want this content to appear insert the code:

<?php include(”file directory here/link.html”);  ?>

This tells the server to include “file.html” in that place on the page. Now, you create “link.html”.

<ul>
<li><a href=”index.php” title=”Home”>Home</a></li>
<li><a href=”contact.php” title=”Contact Us”>Contact Us</a></li>
<li><a href=”location.php” title=”Location”>Location</a></li>
</ul>

Now upload these pages to your webserver and only update “link.html” as needed.

PHP Script & Uncategorized Bryan 10 Jul 2008 No Comments

Automatic Copyright Updating


Many people who design websites put copyright dates on every page of their website.  By inserting this snippet of code your site will bringing in the new year with an up to date copyright date.

Today this snippet will output Copyright 2008 Resnodesigns and next year, it will greet the New Year with Copyright 2009 Resnodesigns.


Copyright <? echo date("Y"); ?> Resnodesigns

PHP Script Bryan 12 Jun 2008 No Comments

Recommended: Buy movies online.