NYCPHP Meetup

NYPHP.org

[nycphp-talk] Include File Access

Chris Snyder csnyder at chxo.com
Mon Sep 8 15:30:01 EDT 2003


That's a much more elegant solution, as long as all of your scripts are 
being called via the web.

I misread the line "As it turns out I need to access this file from the 
Root directory as well" as meaning that he had scripts that were being 
called from a cron job or other via CLI. Sorry!

Brian Pang wrote:

>This is what I used to do until I changed servers and then had to change
>all those paths...
>I see now that dckrook is on the $_SERVER['DOCUMENT_ROOT'] bandwagon...
>
>  
>
>>    require_once('/path/to/config.php');
>>    
>>
>
><snipped>
>_______________________________________________
>talk mailing list
>talk at lists.nyphp.org
>http://lists.nyphp.org/mailman/listinfo/talk
>  
>




More information about the talk mailing list