Posts tagged mysql

How to : Create a simple url shortener script is a few minutes

27

Hello all,

First let’s explain the basics of what we are trying to do.
We’ll build a script that will replace any type of url to a tiny url so it’s easier to post or be untraceable.

For example this *long* google maps url

http://maps.google.fr/maps?f=q&source=s_q&hl=fr&geocode=&q=white+house&sll=46.75984,1.738281&sspn=10.178118,28.54248&ie=UTF8&z=15&iwloc=A

could become

http://your.site/v/12345

you can check it out here : http://www.djpate.com/portfolio/shortURL/create.php

and download the source code here

This is not very hard to do but it’s nice tutorial for beginners.

(more…)

Share

Related Posts:

Mysql Class for php5 using singleton

2

Hello again,

I thought i’ll share another one of my little personal scripts with you guys.

Here is the mysql class I use on most of my project, nothing fancy but does the work for what I need most of the time.

(more…)

Share

Related Posts:

Go to Top