Nov 21, 2009

404 Error Page - Learn to make a really cool one

free web hosting
Open Discussion > MODERATED AREA > Tutorials

404 Error Page - Learn to make a really cool one

GeT HeXD
First, you should know a little bit of basic PHP. It is relatively simple.

CODE
<?php
echo $_SERVER['HTTP_USER_AGENT'];

echo $_SERVER['REMOTE_ADDR'];

?>


echo $_SERVER['HTTP_USER_AGENT']; - Displays users browser.
echo $_SERVER['REMOTE_ADDR']; - Displays users IP Address.

If you have a PHP host, put in
CODE
<?php
phpinfo();
?>

and in one of the sections, there are a whole bunch like these. Like display where user came from etc. Experiment...and you can create something like

Hey! What are you trying to do, buddy?! I know you are using Microsoft Internet Explorer! Your IP is 192.168.0.0! So don't keep trying or we will hunt you down and hack you!

for a 404 Error Page. Oh boy!

-HeXatorials

 

 

 


Comment/Reply (w/o sign-up)

OpaQue
Additional Information on Configuring the .htaccess so as to define the custom error pages. You can either do by the following way or login to your Cpanel and use the custom error page tool to configure the .htaccess file automatically.

QUOTE
For sites hosted on the Linux cluster, you must create a .htaccess file and upload it to your www directory. You will also need to write the custom error pages and upload them to your site.

The .htaccess file is used to override a default setting within the configuration of Apache. The syntax for the .htaccess file is as follows:

ErrorDocument errorcode path-to-page

A working example:
ErrorDocument 404 /custom/404.php



Comment/Reply (w/o sign-up)

GeT HeXD
You guys' 404 Error Page is so cool. I like watching it.

Comment/Reply (w/o sign-up)

DreamCore
QUOTE(GeT HeXD @ Oct 3 2005, 08:18 PM)
You guys' 404 Error Page is so cool. I like watching it.
*


Lol heh... whats is it that is so fun??
Or du you like to see the page that you have made.

Comment/Reply (w/o sign-up)

GeT HeXD
I like what it types up it is just entertaining. It's all like I'm so depressed... lol

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : 404, error, page, learn, make, cool

  1. Psp Error- Tut On How To Fix
    When you try to use the internet does your psp get an internal error? (44)
  2. A Full Error Protected Php Contact Form
    (3)
    Well hello there yound lads. This is my first tutorial ever. If you would like to see the finished
    product for yourself please go to http://www.webtodesign.net/contact/ Anyways here we go! Step
    1. Make a file called index.php . This is where the form is going to be. Copy and paste this code
    in: CODE if ($_SESSION ) { foreach ($_SESSION as $val) { echo "$val "; } unset($_SESSION
    ); } ?>                                                   Name                 
    Email                  Subject                              Message....
  3. Custom 404 Error Pages
    A Tutorial On How To Make Custom 404 Error Pages (18)
    I've seen a tutorial on here and no offense but it was horrific, this is the real way you do a
    404 Error Page. Make a file called: htaccess.txt Open it up and put this: CODE ErrorDocument
    404 /myerrorpage.html You will need to change myerrorpage.html to whatever your page is called.
    Also when you upload this file to your server you need to rename it to: .htaccess Yes, the dot is
    before the words. You need to do this on the server because on Windows you cannot do that!....
  4. ---> Ftp Error Codes What They Mean <---
    (6)
    CODE FTP Error Messages some nice info about ftp error codes so you know what they mean. i am
    sure you see them all the time and sometimes you dont know what they mean, so take a look here. The
    most common codes: 421 - often means: too many users logged to the same account. 530 - wrong
    login:pass, some servers auto-switch to 530 from 421 when they reach the max # of users. so notice
    the error message attached to the code. 550 - common in Ratio site, If the file exsist it means you
    have no access to the file or dir. if you try changing dirs in an FTP and you`re g....

    1. Looking for 404, error, page, learn, make, cool

Searching Video's for 404, error, page, learn, make, cool
See Also,
advertisement


404 Error Page - Learn to make a really cool one

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com