Re: including files outside of document root

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

 



2008. 01. 23, szerda keltezéssel 09.37-kor Jason Pruim ezt írta:
> On Jan 22, 2008, at 3:57 PM, Jason Pruim wrote:
> 
> > Hi everyone,
> >
> > Been doing some reading on security and have decided that I should  
> > be storing my include files outside of the document root... Which I  
> > understand how to do it, but what I'm wondering, is say I write the  
> > Next Killer App (tm). How would I port that code easily off of my  
> > server and put it into a downloadable file for the millions of  
> > people who will download and run  the Next Killer App (tm)?
> >
> > Err... That doesn't make it very clear...  Is there a program for  
> > Macintosh or Unix that I could use to grab all the source code from  
> > where ever I have it set? Or would I need to make my own? Or should  
> > I just quit being lazy and grab it my self? :)
> 
> 
> Yes I know I'm answering my own post... :)
> 
> Thanks for all the suggestions that I received! It's helped me figure  
> out some of the stuff, and now I just need a project to test some of  
> the stuff with!
> 
> Oh, and for an IDE I discovered that Apple XCode works very well as a  
> php editor and file management system. Looks like it will work  
> perfectly!
> 
> I do have 2 questions though...
> 
> #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"?

you need either full path, or put the directory in include_path in
php.ini

> 
> #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? :)

as soon as I will have any jobs like that I'll email you :)

greets
Zoltán Németh

> 
> 
> --
> 
> Jason Pruim
> Raoset Inc.
> Technology Manager
> MQC Specialist
> 3251 132nd ave
> Holland, MI, 49424
> www.raoset.com
> japruim@xxxxxxxxxx
> 

-- 
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