billdksn
|
| Posted: 10/18/2004, 7:09 PM |
|
Just fired up a new app in PHP and everything works fine except that the production pages all have a notice at the top of each page which reads:

Notice: Undefined variable: file_content in c:\inetpub\wwwroot\njc2\Template.php on line 56
I'm running:
Windows XP SP2
MySQL 4.0.21
PHP 4.3.9.9
CCS 2.3.2.24
Any ideas? Everything looks okay in the Template.php file and app runs fine when compiled as an ASP app with the same database.
Help!!
|
|
|
 |
Benjamin Brooks
|
| Posted: 11/01/2004, 1:22 PM |
|
I am seeing the same notice in a recent project of mine. However I use Windows 2000 Pro using IIS and PHP4. This is my test server.
Once I publish to the production server which is a unix server, the notice disappears.
|
|
|
 |
mrachow
Posts: 509
|
| Posted: 11/02/2004, 12:32 AM |
|
Do you have php pages/scripts with corresponding empty html template files?
If this warning is showing up I suppose the statements on line 47 in Template.php
filesize($file_path)
returns 0 and by that $file_content is really undefined.
A guess only.
Regards,
Michael
_________________
Best regards,
Michael |
 |
 |
|