note 23861 added to function.include

From: Date: Tue, 30 Jul 2002 13:30:01 +0000
Subject: note 23861 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-33990@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. -- http://www.php.net/manual/en/function.include.php http://master.php.net/manage/user-notes.php?action=edit+23861 http://master.php.net/manage/user-notes.php?action=delete+23861 http://master.php.net/manage/user-notes.php?action=reject+23861

« previous php.notes (#33990) next »