Ad:
 
  • PHP Discussion Thread
  • Unsolved
  • Views: 27
  • PHP RSS
Similar Threads
Jul 25th, 2010
0

php error

Expand Post »
hello guys .
Can someone tell me how to create a function in php that works whenever someone opens a page that does not exist and at the same time the code notifies me with the error . I have created one but it does not work for all pages . Please tell me how to do it
Reputation Points: 10
Solved Threads: 0
Light Poster
the prince Awah is offline Offline
41 posts
since Jul 2010
Jul 26th, 2010
0

Re: php error

show your code
Reputation Points: 19
Solved Threads: 30
Posting Pro in Training
muralikalpana is offline Offline
457 posts
since Sep 2009
Jul 26th, 2010
0

Re: php error

You can do this by htaccess file also.
below is the code when user open non existed file then he is redirected to error.php.
PHP Syntax (Toggle Plain Text)
  1. ErrorDocument 404 http://localhost/project/error.php
Reputation Points: 18
Solved Threads: 34
Posting Whiz in Training
vibhadevit is online now Online
233 posts
since Apr 2010
Jul 26th, 2010
0

Re: php error

hello guys .
Can someone tell me how to create a function in php that works whenever someone opens a page that does not exist and at the same time the code notifies me with the error . I have created one but it does not work for all pages . Please tell me how to do it

Hey, have you try $_SERVER['query_string'], It may be give you the error code or page which currently access by you

Hope this will help you!
Reputation Points: 10
Solved Threads: 4
Newbie Poster
HemantPHP is offline Offline
18 posts
since Jul 2010
Message:
Previous Thread in PHP Forum Timeline: open source job portal development need help
Next Thread in PHP Forum Timeline: insert not working





About Us | Contact Us | Advertise | Acceptable Use Policy
Build Custom RSS Feed


Follow us on Twitter


© 2010 DaniWeb® LLC