stlewis Posted December 10, 2008 Share Posted December 10, 2008 Hi all! I have a little bit of a problem including class files... I have a php page, (say index.php) wherein I am requiring two other files, (class1.php, class2.php). Each of these files contain a definition for one class. Although there doesn't seem to be any problem with actually including the files, I'm getting errors indicating that the classes themselves can't be found when I try to create an instance of them. This only happens if I require the files via an url, as compared to an absolute path. Any idea why the URL form wouldn't work? url_fopen and url_include are both on in my server configuration. Any help is appreciated! Thanks! Quote Link to comment Share on other sites More sharing options...
trq Posted December 10, 2008 Share Posted December 10, 2008 Including a file via a url simply includes the finished output of whatever the included file produces when requested via http. Class definitions alone will produce nothing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.