Where to put class files?
am 26.03.2009 11:35:32 von John Hughes
I want to use PHP for command line scripting on Windows. Where would
be the best place to put a class file so that it does not have to be
in the same directory as every file that uses it?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Where to put class files?
am 26.03.2009 13:13:58 von James Crow
John Hughes wrote:
> I want to use PHP for command line scripting on Windows. Where would
> be the best place to put a class file so that it does not have to be
> in the same directory as every file that uses it?
>
>
Check your php.ini for its include_path directive. You can create a new
directory on the machine and add it to the include_path in php.ini or
put your calss files in one of the listed directories.
Cheers,
James
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php