Notice: Undefined index: alert in c:\program files\easyphp1-8\www\chat\install.php on line 22
Notice: Undefined variable: found in c:\program files\easyphp1-8\www\chat\install.php on line 22
ive changed nothing, all i dont was ectract the folder to the designated directory and run the install.php. any tips would be much appreciated and thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see...it looks like your php is congfigured to warn on these things. It's more stringent then what I developed under and what most people use afaik. The first problem is $_GET['alert'] which doesn't exist the first time you call install.php. The second problem is $found that shows if there's already a config.php. I'd be interested to know what version of php and os you are using.
To fix, you can modify the code or modify your php config. The modification to the code that I think would work is to change line 22 in install.php to this:
if((isset($_GET['alert']) and $_GET['alert'] == "1") || isset($found)) {
Let us know how it works.
-Dave Sterry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
first, nice little project :)
ok 1 have put the extracted folder into my root directory and now looks like this...
http://localhost/chat/index.php
however when i goto http://localhost/chat/install.php i am nicely presented with a few anoying errors...
Notice: Undefined index: alert in c:\program files\easyphp1-8\www\chat\install.php on line 22
Notice: Undefined variable: found in c:\program files\easyphp1-8\www\chat\install.php on line 22
ive changed nothing, all i dont was ectract the folder to the designated directory and run the install.php. any tips would be much appreciated and thanks
I see...it looks like your php is congfigured to warn on these things. It's more stringent then what I developed under and what most people use afaik. The first problem is $_GET['alert'] which doesn't exist the first time you call install.php. The second problem is $found that shows if there's already a config.php. I'd be interested to know what version of php and os you are using.
To fix, you can modify the code or modify your php config. The modification to the code that I think would work is to change line 22 in install.php to this:
if((isset($_GET['alert']) and $_GET['alert'] == "1") || isset($found)) {
Let us know how it works.
-Dave Sterry