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
How to check real path function enabled in the server
How to check real path function enabled in the server
Wednesday, November 7, 2007
Posted in: Test script | 0 Comments | Email This
Subscribe to:
Post Comments (RSS)
0 Responses to "How to check real path function enabled in the server"
Post a Comment