Online Shopping : 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?

Mar 7th, 2009 12:34
marshal prince, healthy man, dman, Articles Way, Onno Benschop, Julian Rockey,


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.
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com
http://www.weight-loss-camps.info/
http://www.brightsmileteethwhitening.info/
http://www.weight-loss-spa.info/
http://www.1hoodiagordoniiplus.info/
http://www.vacationpackagestohawaii.info/
http://www.automotivefloormats.info/
http://www.shockcollarsfordogs.info/
http://www.1webdesignandhosting.info/
http://www.camera-mobile-phones.info/
http://www.cadillacfloormats.info/
http://www.patiofurniturecoversinfo.info/
http://www.castaluminumpatiofurniture.info/
http://www.fastbusinessloans.info/
http://www.homeloan-interestrates.info/
http://www.menscashmereweaters.info/
http://www.westernweddingdresses.info/