View Full Version : Help, Calender links dont work right...
03-03-2004, 03:27 PM
When you try to change the calender to another month here is the link it gives me:
My "showCalender.php" is stored in:
What am I doing wrong?? :(
03-03-2004, 03:34 PM
seems like you have your "register_globals" set to off in your php.ini file.... looks like the $PHP_SELF is not set so that's why you end up with just the extension (php) instead of the filename...
03-03-2004, 03:51 PM
How do I turn them on?
03-03-2004, 04:16 PM
For some reason, your server is correctly reporting the PHP variable $_SERVER['SCRIPT_NAME']. This is what is used to determine the name of the page you are using to display the calendar.
Something you may try is to edit the config.inc.php file and change line 86 to read:
$thisFile = $PHP_SELF;
Also, remove or comment out lines 87 and 88.
Please let me know if this helps. (BTW, your host may want to know that $_SERVER['SCRIPT_NAME'] isn't working as expected.
In the file config.inc.php, at the end you will see
// SET VARIABLES /////////////
// DETERMINE NAME OF CURRENT FILE
$thisFile = $_SERVER['SCRIPT_NAME'];
$thisFile = explode("/",trim($thisFile));
$thisFile = $thisFile[count($thisFile)-1];
Change 'SCRIPT_NAME' to 'PHP_SELF'
03-03-2004, 04:25 PM
Awesome, it worked perfect... but now for problem #2...
http://www.hsnod.com/calender.php and change the calender month... how can i fix this?
03-03-2004, 06:50 PM
Below the three "$thisFile=" add the line
$thisFile = "calender.php"
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.