zurv Posted February 26, 2005 Share Posted February 26, 2005 Hey guys.. Again, I think this should be a VERY simple question for most of you. lets say inside filetypes.php theres this: define('FILENAME_SPECIALS', 'specials.php'); which links to specials.php. Well lets say there is a page outside the oscommerce directory? there is a file in a directory JUST BEFORE the oscommerce directory I need to link to. Please help me out, I have done everything else but not matter what I link to wether its http://mysite.com/thefolder/thefilesiwant.php or ../thefolder/thefilesiwant.php it dosent seem to work, it looks for it inside the oscommerce directory. Link to comment Share on other sites More sharing options...
FalseDawn Posted February 26, 2005 Share Posted February 26, 2005 A lot of the directories OSC uses are specified in the configure.php file in the /includes/ directory Often, for expediency, OSC will just append the filename to a predefined path, eg require(DIR_WS_INCLUDES . 'filenames.php'); You can define you own path in this file if this is what you want. Link to comment Share on other sites More sharing options...
zurv Posted February 26, 2005 Author Share Posted February 26, 2005 Sorry i wasnt clear in the above post. This should clarify.. ok OSCommerce is in site.com/oscommerce the file I want to link to is in site.com/folder/file.php I wish for the file to load inside OS commerce just like a regular page and to keep their login. Also would I edit the filenames.php file and add the location in there? The file.php I wish to link to is actually a Support Ticket script, so it is similar to a form with a submit button, that takes you to a confirmation page. Thanks in advance!! Link to comment Share on other sites More sharing options...
Guest Posted February 26, 2005 Share Posted February 26, 2005 Well, you could probably use this: include(/full/path/to/the/file); I haven't tried that before, but it seems like it'd work, provided the script doesn't have other dependencies. However, you may still have an issue with preserving the login. Well, maybe not - - if you've already set a cookie for that user on your domain, there really isn't anything to prevent the browser from sending both cookies - - the one for your helpdesk script and the one for osCommerce. -jared Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.