[CentOS] Installing a PHP class

Drew drew.kay at gmail.com
Tue Nov 17 17:42:00 UTC 2009


> Well that was my first try, so I tried to lookup if that lib path was recursive
> anyway, is it important that all files be in one directory in this path?

That won't work because, assuming we're talking about the same class
(see my prev email), the files need to be put somewhere in your
website's directory structure so they can be pulled in by the calling
script. I do something similar, without classes, on a website I've
written. I'll have a require("./framework/helpers.php"); somewhere at
the top that calls in the needed functions. The same would apply to
pulling in classes.


-- 
Drew

"Nothing in life is to be feared. It is only to be understood."
--Marie Curie



More information about the CentOS mailing list