Zend Debugger + Eclipse + Apache

No Comments

I wanted to install the zend debugger with eclipse and apache, and found this spanish tutorial, and want to resume the steps I followed:

I assume you have already installed eclipse 3.3 + pdt.

1. Download the corresponding debugger from: http://downloads.zend.com/pdt/server-debugger/, I use amd64 so I got ZendDebugger-5.2.12-linux-glibc23-x86_64.tar.gz.

2. Untar the file in a directory in your home, I used /home/user/Bin/ZendDebugger.

3. Edit your php.ini file and add the following directives:
zend_extension=/home/<user>/Bin/ZendDebigger/5_2_x_comp/ZendDebugger.so
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always

4. Verify that the extension is loaded with the simple function:
<?php phpinfo(); ?>

5. Restart eclipse and start debugging!
screenshot-eclipse.png

PHP MSSQL 2005 Problem – Solved

2 Comments

Trying to make a connection to a MS SQL Server 2005 database from PHP, I always got an error message using the mssql_connect saying:

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: {servername}.

I tried several solutions like, updating the ntwdblib.dll (on windows; I had the same error on linux) library, configuring the tcp/ip properties on sqlexpress but nothing I still having the same error.

At the end I changed the ip address on the server name by the respective server name and finally worked!.

So instead of:


$server = 192.168.50.1;
$user = 'sa';
$password = 'sapassword';
$conn = mssql_connect($server, $user, $password);

Changed for:

$server = cmanonserver;