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 Link to comment https://forums.phpfreaks.com/topic/76730-solved-simple-one-for-you-guys/ 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. Link to comment https://forums.phpfreaks.com/topic/76730-solved-simple-one-for-you-guys/#findComment-388453 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"; Link to comment https://forums.phpfreaks.com/topic/76730-solved-simple-one-for-you-guys/#findComment-388455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.