vyb3 Posted October 23, 2008 Share Posted October 23, 2008 I have a problem with two scripts clashing, i've narrowed it down to a single piece of code thats causing the problem: This is the code: <?php $curdir = getcwd (); chdir('../forum'); require_once('../forum/global.php'); chdir ($curdir); ?> Its a code for a forum login script on my sites homapge (for vbulletin) and I have a news script/cms script to manage categories on my site and this clash is casuing the pagination of this cms/news script to screw up, and its not adding & in links sometimes either too. When I remove this piece of code which is placed at the top of my index.php before the html tags, everything works fine with my site but the login doesn't work then. How can I do what this piece of code is trying to achieve without the two scripts clashing... Link to comment https://forums.phpfreaks.com/topic/129758-alternative-code-for-this/ Share on other sites More sharing options...
vyb3 Posted October 23, 2008 Author Share Posted October 23, 2008 no ideas anyone? Link to comment https://forums.phpfreaks.com/topic/129758-alternative-code-for-this/#findComment-672791 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.