4577 Posts in 1388 Topics by 1377 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1099 Views |
-
$_SERVER['SCRIPT_FILENAME'] missing on hosting

1 December 2009 at 4:53am
I had to deal whit a hosting that (amongst other stuff) didn't expose the mentioned variable.
The solution:
Simply put this code at the begining of sapphire/main.php
$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_NAME'];
At least that did the trick for me this time.
Hope this helps someone.
| 1099 Views | ||
|
Page:
1
|
Go to Top |

