note 23861 deleted from function.include by spic

From: Date: Wed, 28 Aug 2002 07:55:45 +0000
Subject: note 23861 deleted from function.include by spic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35850@lists.php.net to get a copy of this message
Novice (PHPer) that I am, I could not get my include statement to work. <?php include("./filename.php");?> Reason: My main page was developed prior to me discovering php and was named main.htm, the php interpreter will not fly on an *.html page. You must name the page something like main.php before the <?php ?> tags work. When I took the php tutorials I never realised that only .php extensions invoked the interpreter. This action is slightly different than JSP pages. Java can be invoked from within a html page.

« previous php.notes (#35850) next »