I am moving some php/adodb pages from my Ubuntu 12 to my Ubuntu 14 VM. I believe I installed all the packages,
apt-get -y install apache2 php5 libapache2-mod-php5
apt-get -y install postgresql php5-pgsql php5-adodb libphp-adodb
but I am getting strange results. My index.php code starts like this.
require "./main.inc";
require "./util.php";
$conn = ADONewConnection($dbtype);
$conn->PConnect($dbhost, $dbuser, $dbpass, $dbname);
$step=1;
if (isset($_POST["submit"]))
{
$step=2;
}
if ($step == 2) #verify logon
{
When I open the browser and look at the page, I see this code partially being echoed. The first line in the browser shows this, plus more.
PConnect($dbhost, $dbuser, $dbpass, $dbname); $step=1; if (isset($_POST["submit"])) { $step=2; } if ($step == 2) #verify logon {
The php seems to be fine as the html parts are displayed properly, but the adodb calls are just getting printed instead of run. It seems whatever code I have after the 'ADONewConnection' line just gets printed out.
I checked phpinfo and the module for adodb is listed. I'm just not sure if I missed a setup step somewhere.
Thanks.