I am able to make PHP ESL work for calls i.e. when i receive a call on specified extension my PHP script does executes and i can control call.

However, when i try to access MySQL database from that script, it doesnt let me.

Please advise on how i can access database from there.

Thanks