Re: including files outside of document root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux