Written by

System Analyst at First Line Software
Question Flávio Lúcio Naves Júnior · Nov 17, 2019

Call a Procedure with PHP

Hello everyone,

I am searching, but i cannot find a way to call a Procedure in Caché with PHP. Using .NET we have the Intersystems.Data.CacheClient.CacheCommand and we make a call in a Procedure. How i can do the same in PHP?

Regards,
Flávio

Comments

Robert Cemper · Nov 18, 2019

I faced a similar issue some years back.

As PHP is so close to web servers I decided to use a WebsService to call the ClassMethod aka Procedure.
It was easy on both ends and I could avoid the ODBC module (at that time only 32bit)

0
Flávio Lúcio Naves Júnior  Nov 25, 2019 to Robert Cemper

Hi Robert,

Do you know some article who teach how to create the Web Service to make a call? The Caché PHP module, didn't work for me, because works only locally.

Regards, 
Flávio.

0
Robert Cemper  Nov 25, 2019 to Flávio Lúcio Naves Júnior

sorry. this was done by a PHP developer back in 2008/2009.

the <Caché side was default from the wizard.

I have no idea about the details anymore.

0
Robert Cemper  Nov 18, 2019 to Evgeny Shvarov

Great stuff!

just a few years to late for me but good for future projects

0