PHP [function.require]: failed to open stream: No such file or directory problem

nicotoma

New Member
I get the following error in one of my function includes.\[code\]require(../htmlpurifier/library/HTMLPurifier.auto.php) [function.require]: failed to open stream: No such file or directory\[/code\]I can correct this problem if I code the path\[code\]./htmlpurifier/library/HTMLPurifier.auto.php\[/code\]But I want to display the include file in many different levels of folders on my website without having to re-code the path inside my function include every time which defeats the purpose of my include. Is there a way I can have this work with out having to re-code the path every time? Is there a way to include the full path?
 
Back
Top