note 53492 added to function.include

From: Date: Fri, 03 Jun 2005 08:12:15 +0000
Subject: note 53492 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-89848@lists.php.net to get a copy of this message
I am stuck with import problems. The imported HTML tags work well but no PHP code is imported!!!! Can someone help me. It looks like a configuration problem as I copied the example in this tutorial!!! Thanks very mutch! The following code doesn't work : in file vars.php <?php $couleur = 'verte'; $fruit = 'pomme'; ?> in file test.php <?php echo "Une $couleur $fruit"; // Une include 'vars.php'; echo "Une $couleur $fruit"; // Une verte pomme ?> When the two variables are called they are undefined!! Snif!! Help!! James Manley ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53492 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53492&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53492&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53492&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53492&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53492&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53492&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89848) next »