Lil php coding help for url shortning script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pede69
Forum Newbie
Posts: 1
Joined: Wed Apr 02, 2008 9:13 pm

Lil php coding help for url shortning script

Post by pede69 »

Hi...

Would someone please be kind enough to help me with php code to insert into my webpage?

I have a site that shortens a url. It uses an SQL DB. (not important for this, I believe)

I need the php code to keep the shortened url in the address bar after redirecting to the landing page. The way it works now is that it shortens the url but the original url shows in the address bar after reaching the landing page.

Would someone please help me out here?

I hope I am allowed to put the url here? I am not promoting the site. I can not even use it the way it is now.

Moderators, delete this if it is not ok to be here. Thank you.

URL: [removed]

If you would like, I will give you a free webhosting account for helping me get this the way I want it.
(pretty fast server) cPanel, Fantasico, RV Skin, RV Sitebuilder... the works.

Thank you,
John
Last edited by John Cartwright on Wed Apr 02, 2008 9:16 pm, edited 1 time in total.
Reason: Removed link
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Lil php coding help for url shortning script

Post by John Cartwright »

What most proxies do is simply use frames to hide the url of the site within the frame completely. This also allows the proxy to display a small frame with a link back to you site or whatever, and usually an option to close the frame and visit the real url.

EDIT | I should note that I used the word "proxy" not in the true technical sense (since we are not proxy'ing the connection)
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Lil php coding help for url shortning script

Post by s.dot »

I'm thinking some manipulation of the [R] flag for a mod_rewrite rule? I dunno though.. is there another flag to cloak the URL?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply