CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Notice: Undefined variable file_content in Template

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.