Unable to get examples to work for dhtmlxConnector

Hello,

somehow i seem to be unable to get the dhtmlxConnector working.
I tried to use the Postgres-connector from docs.dhtmlx.com/doku.php?id=dhtm … ide_sample to connect to a postgres 9.2 database running on localhost, but it doesn`t work the way i expected it.
I used the following HTML-Code:

<script  src="./codebase/dhtmlxgrid.js"></script>        
<script  src="./codebase/dhtmlxgridcell.js"></script>  
<script  src="./codebase/dhtmlxgrid_filter.js"></script>  
<script  src="./codebase/dhtmlxgrid_post.js"></script>  
<script src="./codebase/dhtmlxgrid_json.js" type="text/javascript"></script>
<script src="./codebase/dhtmlx.js" type="text/javascript"></script>
<script  src="./codebase/dhtmlxcombo.js"></script>
<script  src="./codebase/dhtmlxchart.js"></script>
<script type="text/javascript" src="./codebase/datastore.js"></script>
<script  src="./codebase/dhtmlxgrid_srnd.js"></script> 
<script type="text/javascript" src="./codebase/datastore.js"></script>
<script type="text/javascript" src="./codebase/dataprocessor.js"></script>
 <script src="./codebase/connector.js" type="text/javascript"></script> 


<style>
    /*these styles allows dhtmlxLayout to work in the Full Screen mode in different browsers correctly*/
    html, body {
       width: 90%;
       height: 90%;
       margin: 0px;
       overflow: hidden;
       background-color:white;
    }
<script>
	window.dhx_globalImgPath="./codebase/imgs/";
</script>

and the following data.php:

<?php require("connector/grid_connector.php"); require("connector/db_postgre.php"); $res = pg_connect("host=localhost port=5433 dbname=Test"); $gridConn = new GridConnector($res,"postgre"); ?>

My Postgres 9.2 is running on Port 3433, because i have another Postgres-Version running on 5432, so it should connect with the database.
But instead i get an empty grid containing the headers and an popup message including the content of the data.php file.
Firefox gives me two errors in the error console:
First: TypeError:this.splice is not a function from path/codebase/dhtmlx.js in line 2582
Second: Kein Element gefunden (No Element found) in data.php line 11.

It seems the php-file is not working correctly.
I have an Apache Webserver running with PHP Version 5.2.5, which i have installed together with an OSGeo4W-Webmapping device so the php-files should be able to work.
Perhaps i have to set an path to the php-files in the php.ini-file of the apache but my trials to do so were unsuccessful.
I have unpacked the dhtmlx_pro_full.zip file into a new working directory and unpacked the newest dhtmlxConnector_php_v15_050413.zip into the dhtmlxconnector-subdirectory and tried to start some of the sample - files from the grid-subdirectory but still all i get is an popup-window containing the content of the php-files and the Firefox-error Message: “Kein Element gefunden” (No Element found) in the php-file.

Could anybody please tell me, where i am going wrong?
I am sure it is something obvious, but somehow i seem to be blind to the problem.

Any help is appreciated.
Thank you for watching my problem.

a) The correct init line would be

$gridConn = new GridConnector($res,"Postgre");

docs.dhtmlx.com/doku.php?id=dhtm … ide_sample

b) try to enable loging, log file will contain details about possible error
docs.dhtmlx.com/doku.php?id=dhtm … tor:errors

@ Stanislav
Thank you for your help.
I have changed the line $gridConn = new GridConnector($res,“Postgre”); as you recomended and i included the line $conn->enable_log(“error_daten.log”); into my data.php.
But it seems that the data.php file is not working at all.
If i understood right, the dhtmlx-code is interpreted by the browser and the php-code should be invoked via Ajax or an Webserver (I am using an Apache 2.2.14 with php 5.2.5 under Windows 7 Professional).
But all i get is the code of the php-file and the “Kein Element gefunden” (No Element found) in data.php line 11.
It looks to me, as if the browser seemed to invoke the php-file, which he couldn´t and returns the included code instead.
Have i missed to include a sourcefile for fulfilling an Ajax-connection in my HTML-file or is it a problem with my Webserver (perhaps within the httpd.conf)?
I have seen, that i had included the datastore.js twice and deleted one and i have moved the dataconnector.js to be invoked before the datastore.js, but this doesn´t make any difference.

It is surely some beginners fault on my side, but i seem unable to find an solution on my own.
Could you support me with an example of how to invoke the php-code?

For data loading from server side data file you need not any extra includes.

a) run php file directly in browser - it must render xml response, if it renders some error or nothing - there is a problem with configuration. You can enable logging to get more details.
docs.dhtmlx.com/doku.php?id=dhtm … tor:errors

if error reasons not clear - grab the default connector package and try to run one of default samples with your db configuration.

b) if php feed returns valid data - check the client side code. load method of related component must point to php file. Be sure that you are using valid connector type ( gridconnector for grid, etc. ) and valid data type ( all components and all connectors are xml based by default )