Re: php not working as before...

From: Date: Wed, 24 Sep 2003 17:06:35 +0000
Subject: Re: php not working as before...
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8011@lists.php.net to get a copy of this message
Hi Tim, This should be asked on php.general, first off. The code here:
<?php $pgContent = $_GET['pgContent']; include("$pgContent.inc"); ?>
is REALLY risky code - allowing the user to specify which file to include is always a risky idea = your user could gain access to your stuff by sneaky means.
Then I see this error message: Failed opening '.inc' for inclusion (include_path='.:/usr/share/pear) Did my sys ad upgrade to php4 w/o telling me? Should I be recoding all this stuff?
You should always read stuff the sysadmin says :) Perhaps you should ask the sysadmin for help? THey are usually very good at questions of this nature. Regards, Greg

« previous php.pear.general (#8011) next »