For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > March 2004 > Re: [PHP-DB] to many files!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] to many files!
Jeffrey N Dyke

2004-03-31, 10:31 pm



>I am accumulating way to many PHP files in my home directory. It is
>very difficult to sift through all the files.
>I use a lot of "includes" and "requires" so it is difficult to organize
>them in folders even if I change back a directory with my requires
>using "..\".
>Does anyone know of a better way to organize a huge spiderweb of

documents?

Sounds like you need to use the global include path, or set your own in
php.ini.
Then you can organize how you wish and never need to know what web dir
you're in
just use:

require_once 'file.php' in the root and
require_once 'folder/file.php' in subdirectories.

this folder is /path/to/php/lib/php or c:\php\lib\php (though i don't use
windoze)
It is also the folder where all Pear classes are held.

HTH
Jeff

>Matt


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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com