Re: php not working as before...
| From: | Bertrand Mansion | Date: | Wed, 24 Sep 2003 17:24:10 +0000 |
| Subject: | Re: php not working as before... | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8013@lists.php.net to get a copy of this message | ||
<bmansion@mamasam.com> wrote :
> <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
Well, I read your mail too quickly. It looks more like your $_GET variable
is empty. You should try var_dump($_GET); and see what's being sent.
Bertrand Mansion
Mamasam