0

How to check real path function enabled in the server

Wednesday, November 7, 2007

The realpath function returns canonicalized absolute pathname.
chdir('/var/www/');
echo realpath('./../../etc/passwd');
?>


It will produce the output "/etc/passwd"

The CMS software such as e107 requires the realpath function. e107 will not support hosts that di
sable the realpath() function.

0 Responses to "How to check real path function enabled in the server"