Re: including files outside of document root

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

 



On MOST setups, you might have:

/yourhomedirectory
    /httpd_docs_or_something_like_that
        /index.php
        /page2.php
    /includes
        /globals.inc
        /connect.inc
    /sql

So, pretty much, you'd do something like:

tar -cvf my_site.tar http_docs includes
gzip my_site.tar

And then you'd just install that wherever...

Nothing peeves me more than some badly-conceived web-app with no way
to move the include files out of the web-tree.

On Tue, January 22, 2008 2: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? :)
>
>
> --
>
> 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
>
>


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