GetDotted Domains

Viewing Thread:
"A PHP and ASP question."

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.

Fri 31/10/03 at 13:42
Regular
"It goes so quickly"
Posts: 4,083
In PHP, you can use this bit of code:

if (eregi("Header.php", $PHP_SELF))
header("Location:error.htm");

This allows you to prevent people going to pages that are not intended to be viewed on their own. The method is:

"If the user is asking to view this page via their browser, redirect them to the 'error.htm' page".

Is such a method available in ASP, and if so, could someone give me some sample code??

Thanks.
There have been no replies to this thread yet.
Fri 31/10/03 at 13:42
Regular
"It goes so quickly"
Posts: 4,083
In PHP, you can use this bit of code:

if (eregi("Header.php", $PHP_SELF))
header("Location:error.htm");

This allows you to prevent people going to pages that are not intended to be viewed on their own. The method is:

"If the user is asking to view this page via their browser, redirect them to the 'error.htm' page".

Is such a method available in ASP, and if so, could someone give me some sample code??

Thanks.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Many thanks!
You were 100% right - great support!
Everybody thinks I am an IT genius...
Nothing but admiration. I have been complimented on the church site that I manage through you and everybody thinks I am an IT genius. Your support is unquestionably outstanding.
Brian

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.