Re: including files outside of document root

From: Date: Wed, 23 Jan 2008 19:42:51 +0000
Subject: Re: including files outside of document root
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-267923@lists.php.net to get a copy of this message
On Wed, January 23, 2008 8:37 am, Jason Pruim wrote: > > On Jan 22, 2008, at 3:57 PM, Jason Pruim wrote: > >> Hi everyone, >> > #1. When including files outside of the webroot do you need to > specify the entire path? Like for me, that would be something like: "/ > volumes/raider/webserver/includes/projectname/includeme.php" or can I > just stop at: "/webserver/includes/projectname/includeme.php"? Neither. :-) Figure out how PHP's include_path feature works and use that. http://php.net/set_include_path You should use set_include_path to define what directory[ies] PHP should search, and then just do: include 'includeme.php'; > #2. Anyone got any small programming jobs that I can hone my skills > with? :) You know, the kind of projects that you guru's don't want to > do because you're too busy writting the Next Killer App (tm) but would > be perfect learning experience/easy way to put some cash in the > pocket? :) Non-profits/Charities often have programming needs not being met by traditional (costly) developers. They may have SOME cash, but not a lot. And there's always somebody wanting yet another shopping cart store-front installation... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#267923) next »