GetDotted Domains

Viewing Thread:
"Fancy URLs"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Tue 30/07/02 at 18:20
Regular
Posts: 787
Right, i've got a basic knowledge of PHP and i want to make my urls huuuuge!
e.g. my_page.php?lots_of%20intresting%20stuff_here*dances*

this uses the template: my_page.php and adds text into a table, please tell me how this is done please, thankyou, also how does it link? do I have to write the: ?lots_of%20intresting%20stuff_here*dances* into the anchor or can it be shortened ever so slightly? thankyou for your precious time.
Tue 30/07/02 at 19:21
Regular
"IT'S ALIVE!!"
Posts: 4,741
Wahoo cheers Whooo! ;)
Tue 30/07/02 at 19:19
Regular
"How Handy."
Posts: 2,631
$location = $HTTP_GET_VARS['content'];
if( $location == "" ) { $location = "home"; }
if( strpos( "foo".$location, ".." ) or ereg("^/", $location) // or ereg("^\\", $location)
) {
print "

Server Error

";
} else {
require($location.".php");
};
?>

huzzah. now you need to make the file, for example pics.php with the page for pics, and then the index file will include the pics.php file when someone goes to index.php?content=pics. if there's no content page specified, (if they just go to index.php) then it defaults to include the file home.php

DISCLAIMER: I blatently stole this script from Insomnia, so ask him or rob any questions :D
Tue 30/07/02 at 18:53
Regular
"IT'S ALIVE!!"
Posts: 4,741
sorry, like SR's url:
display_threads.php?forumid=216

perfect example, I don't want to make forums though, i want it for my website.
Tue 30/07/02 at 18:20
Regular
"IT'S ALIVE!!"
Posts: 4,741
Right, i've got a basic knowledge of PHP and i want to make my urls huuuuge!
e.g. my_page.php?lots_of%20intresting%20stuff_here*dances*

this uses the template: my_page.php and adds text into a table, please tell me how this is done please, thankyou, also how does it link? do I have to write the: ?lots_of%20intresting%20stuff_here*dances* into the anchor or can it be shortened ever so slightly? thankyou for your precious time.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

I am delighted.
Brilliant! As usual the careful and intuitive production that Freeola puts into everything it sets out to do. I am delighted.
I've been with Freeola for 14 years...
I've been with Freeola for 14 years now, and in that time you have proven time and time again to be a top-ranking internet service provider and unbeatable hosting service. Thank you.
Anthony

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.