Basic Q: Standard Installation Location for PHP Libraries
Posted: Fri Feb 23, 2007 9:05 am
Hi,
Very basic question, are there any standard places to install PHP Libraries? I.e., like Unix commands, as long as you put it under certain paths, you won't need to refer them by full path.
I have a PHP Library, Swift Mailer, where should I install it so that I can refer it without the full path, as the user manual says:
Currently, I have to do:
please help.
thx
Very basic question, are there any standard places to install PHP Libraries? I.e., like Unix commands, as long as you put it under certain paths, you won't need to refer them by full path.
I have a PHP Library, Swift Mailer, where should I install it so that I can refer it without the full path, as the user manual says:
Code: Select all
require_once "lib/Swift.php";Code: Select all
require_once "/usr/lib/php/swift-lib/Swift.php";thx