Closed phatpatt closed 11 years ago
SCRIPT_URI is empty on localhost access, https://github.com/Pomax/EasyPageComments/blob/master/EasyPageComments.php#L84 will have to be changed so that it picks the correct location when running in environments that do not populate that variable
it'll probably also be worth replacing $_SERVER["PHP_SELF"] with $_SERVER["SCRIPT_NAME"], for security reasons.
so what would i need to change on that line to run it on a localhost?
I've updated the .php file on master, it should work now.
when applied to a localhost this will appear... Notice: Undefined index: SCRIPT_URI in C:\xampp\htdocs\MySite\root\EasyPageComments.php on line 84