RE: problems with require...
| From: | Simon R Jones | Date: | Wed, 14 Feb 2001 11:53:22 +0000 |
| Subject: | RE: problems with require... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-6601@lists.php.net to get a copy of this message | ||
> I have only started to program in php over the past month or so.
> but I'm some problems with this bit of code below.
>
> Problem area
> require('$includefile.inc');
hi Dave,
the
require($includefile);
bit should work fine. but before that try replacing this line
$includefile = $row["includefile"];
with:
$includefile = $row["includefile"].".inc";
PHP is prob getting confused what the "." means in your require statement.
best wishes,
simon
-------------------------------------------
Studio 24 Ltd | tel. 01223 501 892
30 Hopkins Close | fax. 0870 063 1216
Cambridge | mob. 07974 074 547
CB4 1FD | www.studio24.net