View Full Version : Help, Calender links dont work right...
etaylor
03-03-2004, 03:27 PM
http://www.hsnod.com/calender.php
When you try to change the calender to another month here is the link it gives me:
"http://www.hsnod.com/php?mo=2&yr=2004"
My "showCalender.php" is stored in:
http://www.hsnod.com/escal/showCalender.php
What am I doing wrong?? :(
ve9gra
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...
etaylor
03-03-2004, 03:51 PM
How do I turn them on?
Brian
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.
Try this.
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'
tomB
etaylor
03-03-2004, 04:25 PM
Awesome, it worked perfect... but now for problem #2...
goto
http://www.hsnod.com/calender.php and change the calender month... how can i fix this?
Brian
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.