legg
May 18th, 2007, 03:22 PM
At uni, we have the labs server, this server also serves users homepages. Since students also learn php, we put ourselves in a position of risk. Particularly, if some user were to do this php code and ran it from his public_html:
<?
include("/var/www/mambo/configuration.php");
echo $mosConfig_user;
echo "<br>";
echo $mosConfig_password;
?>
He could know information (about mambo) that should be restricted.
Any way to avoid this behaviour?
Thanks in advance.
<?
include("/var/www/mambo/configuration.php");
echo $mosConfig_user;
echo "<br>";
echo $mosConfig_password;
?>
He could know information (about mambo) that should be restricted.
Any way to avoid this behaviour?
Thanks in advance.