https://www.icyphoenix.com/viewtopic.php?f=35&t=9188&p=59464#p59464
-----------------------------------
AndyGpy
Wed 22 Jan, 2014 08:12

Re: PHP5.5 And Apache2.4.7 Upgrade Problems
-----------------------------------
Mort

You are missing the point here, the echo command is not the problem, the problem is the variables i have stored in alertsconfig.php are not being included.

include(IP_ROOT_PATH . '/alerts/alertsconfig.'.PHP_EXT);

The echo command serves its purpose during a fault on the page, the ones that are there after // are only comments and parts of old code that will be removed.

if i copy and paste the contents of alertsconfig.php into the code above the full page works. if i dont copy the variable in the page fails with a sql error of

SQL ERROR [ mysql4 ]

[0]

BACKTRACE

FILE: includes/db/mysql.php
LINE: 111
CALL: sql_db->sql_error()

FILE: alertz_VIP.php
LINE: 53
CALL: sql_db->sql_db()

if i replace the

include(IP_ROOT_PATH . '/alerts/alertsconfig.'.PHP_EXT);

with

$alerts_mysql_username = "username"; // MySQL user name
$alerts_mysql_password = "password";   // MySQL password (leave empty
$alerts_mysql_db       = "scotbirdalerts";  // MySQL database name
$alerts_mysql_host     = "localhost";      // MySQL server host name

then it works.

regards


