"Safe Mode Restriction" on Main Pag

Charles_Lai / 2009-05-05 05:25:06   

Why there is two lines on the top of my main page?

SAFE MODE Restriction in effect. The script whose uid is 71518 is not allowed to access /www/uuuq.com/c/h/a/charleslai/htdocs owned by uid 2003 in /www/uuuq.com/c/h/a/charleslai/htdocs/index.php on line 16

SAFE MODE Restriction in effect. The script whose uid is 71518 is not allowed to access /www/uuuq.com/c/h/a/charleslai/htdocs owned by uid 2003 in /www/uuuq.com/c/h/a/charleslai/htdocs/index.php on line 17

What does it mean ?

My site:
http://charleslai.uuuq.com

Vaska A / 2009-05-05 07:48:08   

Whoa...first time I've seen this one...I would have guessed that I would have seen this before now. These are lines 16 and 17...

  1. $_REAL_SCRIPT_DIR = realpath(dirname($_SERVER['SCRIPT_FILENAME']));
  2. $_REAL_BASE_DIR = realpath(dirname(__FILE__));

It's clear that your server doesn't like the use of 'dirname()' and/or 'realpath()' functions - it's restricted.

Everything seems to be working just fine otherwise?

Charles_Lai / 2009-05-06 06:53:36   

Other things work well...

I just want these two lines disappear on my page.
Because they are on every pages.
It is quite annoying.

Is there any thing I can do to hide them ??

Vaska A / 2009-05-06 06:58:24   

Yes...you can try this...

  1. $_REAL_SCRIPT_DIR = @realpath(@dirname($_SERVER['SCRIPT_FILENAME']));
  2. $_REAL_BASE_DIR = @realpath(@dirname(__FILE__));

See if it helps. The '@' simply hides the notices.

This thread has been closed, thank you.