faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

70 of 118 people (59%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Can the PHP include command be used with a virtual path?

Feb 20th, 2008 22:55
dman, Articles Way, Onno Benschop, Julian Rockey, http://www.ttnr.org


You can use: include("../../myPathSomewhere/myFile.php"), this also 
works for require().
You can also use:
$myIncludePath = "/bob/somewhere/" ;
include ($myIncludePath."databaseRoutines.php") ;
=====
tizag.com/phpT/include.php
i hope that helps.