note 41937 added to function.include

From: Date: Tue, 27 Apr 2004 05:00:32 +0000
Subject: note 41937 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-68851@lists.php.net to get a copy of this message
What is the easier way to include a file wich is on a folder ? There is, for example: -> index.php ->Menu/_top_Menu.php I want to include _top_Menu.php into index.php. I wrote this: <? $path="Menu/"; include ($path.'_top_Menu.php'); ?> but that does'nt work when I upload my page to the server house. Help! ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41937 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41937&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41937&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68851) next »