Jump to content

Alternative Code for this:


vyb3

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.