Page 1 of 1

Basic Q: Standard Installation Location for PHP Libraries

Posted: Fri Feb 23, 2007 9:05 am
by xpt
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:

Code: Select all

require_once "lib/Swift.php";
Currently, I have to do:

Code: Select all

require_once "/usr/lib/php/swift-lib/Swift.php";
please help.

thx

Posted: Fri Feb 23, 2007 9:11 am
by Citizen
I would say look here:

viewtopic.php?t=24660

But the link in that is broken... maybe you can wayback it?

Posted: Fri Feb 23, 2007 9:34 am
by xpt
thx for the point, but no, I can't wayback it...

Posted: Fri Feb 23, 2007 9:03 pm
by feyd
Anything that's in the include path doesn't require full paths.

get_include_path()