Site Personalization With PHP

Written by Robert Plank

Continued from page 1

If you want to go ahead and shortenrepparttar URL even further, you can even userepparttar 118031 letters "F" and "L" instead of firstname and lastname.

For example, try this in your page:

And then use this URL (substituting with your correct URL, of course):

The result isrepparttar 118032 same. I think we want our URLs to look a little better, though.

The format I used in that above example was:

Now,repparttar 118033 problem with this is that this link looks really ugly. Another setback with this format is that anything torepparttar 118034 right ofrepparttar 118035 "?" won't be indexed by some ofrepparttar 118036 smaller search engines.

Here's a way to change this:

To this:

It's really easy. Just change your script to this:

$myvars = explode("/",$REQUEST_URI); for ($i=0;$iecho "$f $l";


And in just a few lines of code, your personalized PHP script's URL just looked a whole lot better.

I won't bore you withrepparttar 118037 details of what that script does, but it basically chops uprepparttar 118038 URL you gave it and picks outrepparttar 118039 pieces it wants using array exploding and variable-variables.

This snippet can also be used on almost any PHP script as well. (I used this method when I coded Brian Garvin's Lightning Track ad tracker... if you ever see a URL anywhere with "go.php/etc" in it, that's my script.)

Hopefully we all learned something today. This mini-tutorial was brought to you byrepparttar 118040 letters "P-H-P."

Article by Robert Plank

Subscribe to the free opt-in newsletter "JumpX E-Magazine" for lots more PHP help.

Dreamweaver vs FrontPage

Written by Oleg Lazarenko

Continued from page 1

Pluses and minuses of Macromedia Dreamweaver:

1. You can build your own templates and use them to edit hundreds of pages of your website with one single click. Although Dreamweaver adds some comment tags to html file to distinguish editable and non-editable areas and I read in one forum that people experience some troubles applying template to more then 700 pages as they ran out of memory but I had never chance to test that.

2. Pages done with Dreamweaver usually have less trash in coding. They look almost perfect with Netscape, Opera and MS Explorer.

3. Dreamweaver doing amazing thing with SSI files and other server side include technology. Php code looks much nicer however with ASP scripts FrontPage still better.

4. Dreamweaver is much better interacts with other macromedia products.

5. Both editors in most cases display CSS (Cascading Style Sheets) correctly. But if you enter style attribute twice in Dreamweaver for

it will definitely ruin your page and you will be able preview your page partly before this error. FrontPage however handles such mistakes easily.

There are many others pluses and minuses in both editors if I wrote about al of them I should probably start a book rather then single article, but those I have mention I heard most about.

My idea is that MS FrontPage is ideal for beginners as it provides so much help and templates, then you should move to Dreamweaver when you feel yourself more comfortable withrepparttar html code and finally, if you are serious about web design, you should reachrepparttar 118030 hand coding level as it still best way for coding pages. It gives yourepparttar 118031 freedom of using tags and styles, as you want them to use. Do not forget however validate you hand coding, or code generated with FrontPage or Dreamweaver. You will be surprised if you knew how many errors produced during coding starting from broken links to invalid tag attributes.

About the Author: Oleg Lazarenko

Production manager of

Metamorphosis Website Design Studio -

Custom design, Website Templates,

Web design Articles and Tutorials.

You may reprint this tutorial for free as long as the content, About the Author sections and all links remain unchanged.

    <Back to Page 1 © 2005
Terms of Use