Guest Posted January 25, 2010 Share Posted January 25, 2010 Hi all Just a quick one that I really need help with, I would like to add new pages in a directory with in my site example: / partywedding/search_partywedding.php I have put in the application_top.php define('FILENAME_search_partywedding', 'partywedding/search_partywedding.php'); And in my new category box i have <a href="<?php echo tep_href_link(FILENAME_search_partywedding); ?>">Bands (Wedding & Party)</a> Which gives me the link and it does work, However im gettin errors listed below, Have I missed Something? Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /home/content/49/5416949/html/partywedding/search_partywedding.php on line 13 Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/49/5416949/html/partywedding/search_partywedding.php on line 13 Link to comment Share on other sites More sharing options...
Guest Posted January 25, 2010 Share Posted January 25, 2010 by replacing require('includes/application_top.php'); in search_partywedding.php require('../includes/application_top.php'); I have told it to double back up to the root to find the required files however it still did not find includes/configure.php, So i have created the includes directory in the partywedding directory and have copied the configure.php over. And i made one small change define('DIR_WS_INCLUDES', '../includes/'); again i have told it to search back from the root, This works however i feel that this is not the correct way of doing things! could anyone assist? Link to comment Share on other sites More sharing options...
Guest Posted January 25, 2010 Share Posted January 25, 2010 This might help you http://www.oscommerce.com/forums/topic/187263-tip-for-putting-pages-in-a-subdirectory/ Link to comment Share on other sites More sharing options...
Guest Posted January 25, 2010 Share Posted January 25, 2010 This might help you http://www.oscommerce.com/forums/topic/187263-tip-for-putting-pages-in-a-subdirectory/ Thankyou it has been a big help! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.