Qwench icon indicating copy to clipboard operation
Qwench copied to clipboard

Undefined index: PATH_INFO

Open ghost opened this issue 15 years ago • 6 comments

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);

ghost avatar Jan 20 '10 12:01 ghost

Post the link to your website, and sign-up on qwench.net and post this question.

askagamer avatar Jan 20 '10 19:01 askagamer

I cannot post a link, its deployed on a LAN. the xampp server works with php5, maybe the value PATH_INFO is missing.

ghost avatar Jan 21 '10 14:01 ghost

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 ;-)

kazzab avatar Feb 02 '11 16:02 kazzab

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));

tamr avatar Mar 24 '11 02:03 tamr

Better fix than tamr's code:

index.php (replaces line 14):

$pi = (isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '');
$path = explode("/", substr($pi,1));

svandragt avatar Oct 26 '12 10:10 svandragt

magical..!!! thanks svandragt.... :+1: it made my night.. :D

honey6293 avatar Oct 27 '12 19:10 honey6293