The Blog

PHP

Change port 80 to 81 on Wampserver

Posted on

I assume your server Configuration:
Apache Version: 2.2.
PHP Version:   5.2.6

Now that you have WampServer 2.0 installed, you’ll want to use it along side   with other servers such as IIS. This is easily done by changing the port that   WampServer 2.0 listens to. I suggest changing the port from 80 to 81.
Read More

Posted in MySQL, PHP 8 Comments

PHP ODBC MAS90/200

Posted on

Create System DSN MAS90PHP best if you copy SOTAMAS90 DSN add username and password to it. And make sure you run apache under user that has access to mas90 share even in mas200. Below is code that you can test connection with.

<?php
$conn = odbc_connect('MAS90PHP','','');
if (!$conn)
{exit("Connection Failed: " . $conn);}
else
echo"Connected<BR>";

$query = "SELECT * FROM GL_Audit";
$result = odbc_exec($conn, $query) or die(odbc_errormsg());

while(odbc_fetch_row($result)){
echo odbc_result($result, "FieldName") . "<br>";

}

odbc_close($conn);
echo"Connection Closed";
?>
Posted in PHP Leave a comment
« Previous Page