www.webdeveloper.com
Results 1 to 4 of 4

Thread: Error Message: Hide Full File Path

  1. #1
    Join Date
    Nov 2007
    Posts
    362

    Error Message: Hide Full File Path

    Hi,

    Upon an error occurring with my PHP scripts, can do I hide the full path of the cooperate file within the error message?

  2. #2
    Join Date
    Sep 2006
    Location
    Bucharest, RO
    Posts
    940
    As far as I know, the only way to do it is by suppressing the error.

  3. #3
    Join Date
    Nov 2007
    Posts
    362
    What do you mean by that? Is it possible to turn off error message completely? - How?

  4. #4
    Join Date
    Sep 2006
    Location
    Bucharest, RO
    Posts
    940
    To turn off error messages completely:
    PHP Code:
    error_reporting(0); 
    Or, most functions that can give an error can suppress that error by putting an '@' before the function call:
    PHP Code:
    $var = @some_func($parameter); 
    --> http://www.php.net/manual/en/languag...rorcontrol.php

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles