Seeo Posted March 29, 2008 Share Posted March 29, 2008 hello where can get a long url to custom url script like sturly.com, doiop.com or fhurl.com ? please help me! or is it easy to create one ? please help me ! Quote Link to comment https://forums.phpfreaks.com/topic/98515-help-custom-url/ Share on other sites More sharing options...
mkoga Posted March 29, 2008 Share Posted March 29, 2008 Seems pretty easy to create. You just have to generate a unique url for a user submitted url. When this unique url is hit on your site, search the db for the mapped user submitted url and use header() to redirect to it. You should probably do a 301 redirect. Quote Link to comment https://forums.phpfreaks.com/topic/98515-help-custom-url/#findComment-504143 Share on other sites More sharing options...
Northern Flame Posted March 29, 2008 Share Posted March 29, 2008 im not exactly sure how they do it, but one way would be to use mysql and just put an id to a url and have the new url be like http://www.yourwebsite.com/?url=56 (56 would be the id of the url in the database) and then just grabbing the url from the database that is in the same row as the id 56 and then just redirect them to it. Quote Link to comment https://forums.phpfreaks.com/topic/98515-help-custom-url/#findComment-504145 Share on other sites More sharing options...
mkoga Posted March 29, 2008 Share Posted March 29, 2008 same basic idea as i had mentioned. here's one way to generate a short unique url. $unique_url = dechex(microtime() * time()); i'm sure theres room for collisions, but it's a start. Quote Link to comment https://forums.phpfreaks.com/topic/98515-help-custom-url/#findComment-504171 Share on other sites More sharing options...
Seeo Posted March 29, 2008 Author Share Posted March 29, 2008 guys guys...I'm a total n00b...so any more details.... by the way i have a script that lets me do it, but the problem is when it redirects it shows a timer and " page redirecting " thing, so can anybody please help me how to make it not to show the timer, I want it to automatically redirect, ... Well here are the files in that script.....the pro i can't ask or give the script part directly is that I don't knw which file to look into, so here are the files which comes with the script config_sample.php forgotpwd.php index.php install.php login.php password.php profile.php utils.php so which file do I have to edit to make it possible Quote Link to comment https://forums.phpfreaks.com/topic/98515-help-custom-url/#findComment-504189 Share on other sites More sharing options...
mkoga Posted March 29, 2008 Share Posted March 29, 2008 what's the url of the page with the timer on it? Quote Link to comment https://forums.phpfreaks.com/topic/98515-help-custom-url/#findComment-504192 Share on other sites More sharing options...
Seeo Posted March 29, 2008 Author Share Posted March 29, 2008 www.brokenscript.com is there site... Quote Link to comment https://forums.phpfreaks.com/topic/98515-help-custom-url/#findComment-504196 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.