Re: [PHP4BETA] require problems

From: Date: Tue, 02 May 2000 14:38:54 +0000
Subject: Re: [PHP4BETA] require problems
Groups: php.version4 
Request: Send a blank email to php-version4+get-14375@lists.php.net to get a copy of this message
Addressed to: "Seth Banks" <seth@subimage.com> php4beta@lists.php.net ** Reply to note from "Seth Banks" <seth@subimage.com> Tue, 2 May 2000 14:18:31 -0700 > > does anyone know why require would be failing...i have a require > statement that is passed a filename variable that is set earlier in > the page. when i do this, php complains and says... > > Fatal error: Failed opening required 'pgsql65.inc' (include_path='./') > in /home/seth/substruct/app/modules/content/test.php on line 13 > I believe require does not allow variables. > yet when i switch the name to a string constant it gives me this... > > Parse error: parse error in pgsql65.inc on line 168 > > when the file, pgsql65.inc, is only 167 lines long!!! You have a mismatch in one of the following: "" '' {} <??> Try to use include() instead of require() I think you will get better error messages. Rick Widmer http://wwww.develpersdesk.com

« previous php.version4 (#14375) next »