Qwench
Qwench copied to clipboard
Undefined index: PATH_INFO
I have this error on index: Notice: Undefined index: PATH_INFO in /opt/lampp/htdocs/qwench/index.php on line 14
I've tried changing the config parameters, but nothing works: define('BASE_DIR','/qwench'); define('BASE_PATH',BASE_DIR);
Post the link to your website, and sign-up on qwench.net and post this question.
I cannot post a link, its deployed on a LAN. the xampp server works with php5, maybe the value PATH_INFO is missing.
hello,
I think your script is great, except that I can not install can you help me? I send you the link: http://www.le-prescripteur.fr/
merci ;-)
Try this solution:
config.php
define('BASE_DIR',''); define('BASE_PATH',BASE_DIR);
index.php
//$path = explode("/", substr($_SERVER['PATH_INFO'],1));
$path = explode('/', substr(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH),1));
Better fix than tamr's code:
index.php (replaces line 14):
$pi = (isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '');
$path = explode("/", substr($pi,1));
magical..!!! thanks svandragt.... :+1: it made my night.. :D