monkeybidz Posted November 10, 2007 Share Posted November 10, 2007 I am using a file named item.php This is the layout: root >> auction >> item.php Inside item.php I need to include a file that is in a different directory on the same root. The include I need is in directory "root/quote/zipcode.class.php" I tried this in itep.php: include "./quote/zipcode.class.php"; This is not working. cannot open error Quote Link to comment Share on other sites More sharing options...
monkeybidz Posted November 10, 2007 Author Share Posted November 10, 2007 just copied the zipcode.class.php to the current directory. Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 10, 2007 Share Posted November 10, 2007 you can try include $_SERVER['DOCUMENT_ROOT']."/quote/zipcode.class.php"; 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.