Re: php not working as before...

From: Date: Wed, 24 Sep 2003 17:18:25 +0000
Subject: Re: php not working as before...
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8012@lists.php.net to get a copy of this message
<timhen@benedictine.edu> wrote : > I woke up one day and some of my php sites weren't functioning properly. > Simple stuff like: > > <?php > $pgContent = $_GET['pgContent']; > include("$pgContent.inc"); > ?> > > 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? > > I know very little php--only what I taught myself by comparing syntax of asp > and php. This is the PEAR list, not PHP-GENERAL list. You should post your mails to the later if they concern PHP only. Anyway, your admin probably didn't add this line to his httpd.conf: AddType application/x-httpd-php .php .php3 .inc BTW, if you really use the piece of code above, I think you shouldn't post the URL to your sites anywhere... :) Bertrand Mansion Mamasam

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