Forum Moderators: coopster

Message Too Old, No Replies

HSBC CPI integration with PHP

Having a lot of trouble with this...

         

vincevincevince

12:55 pm on Jun 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

I've not had experience with HSBC CPI before, and am trying to integrate a shopping cart with it.

The server is Linux/Apache, and I have coded the cart in PHP. I'm desperately hoping that someone can give me a few pointers on what to do here, especially regarding the POST statements.

ajimenez

8:54 am on Aug 2, 2004 (gmt 0)

crypto

2:17 pm on Aug 4, 2004 (gmt 0)

10+ Year Member



Hi Andeeh,

I have hosted the site on the same server that you recommended. But I'm unable to execute the TestHash.e file. I don't get any output from exec("$path/TestHash.e arg1 arg2"). Can you shed some light on this?

Thanks

andeeh

2:44 pm on Aug 4, 2004 (gmt 0)

10+ Year Member



hi there crypto

Have you got this working on your development server? De-bugging code on a remote system is going to be tedious to say the least.

crypto

5:49 am on Aug 5, 2004 (gmt 0)

10+ Year Member



I'm actually using the compiled C module(TestHash.e) provided by HSBC. Anyway the web host has allowed SSH from a static IP. So I'm going to do some trouble shooting today.

ajimenez

9:31 am on Aug 5, 2004 (gmt 0)

10+ Year Member



have you got them to install the lib file?

crypto

9:32 am on Aug 5, 2004 (gmt 0)

10+ Year Member



I did an SSH to the server. I can execute the TestHash.e like this:

$./TestHash.e arg1 arg2

But,

$TestHash.e doesn't work. Why is that? Any ideas?

andeeh

10:04 am on Aug 5, 2004 (gmt 0)

10+ Year Member



As ajimenez says, have you got the libCcCpitools.so installed on the server? What do you mean by it doesn't work, can you be more specific?

crypto

10:13 am on Aug 5, 2004 (gmt 0)

10+ Year Member



Yes libCcCpiTools.so has been installed on the server.

When I execute,

$./TestHash.e arg1 arg2 from the command prompt,it works fine.

And when I run,

$TestHash.e arg1 arg2 I get a bad command error.
This means the OS isn't executing it or treating it as an executable. I have given execute permissions also to the file.

When I run exec("./TestHash.e arg1 arg2") through PHP I don't get any output.

Please help. This is really getting frustrating.

andeeh

10:55 am on Aug 5, 2004 (gmt 0)

10+ Year Member



the problem is the path?

You need to give php a path, there is no path for exec() to your script, so try "/path/to/my/stuff/TestHash.e"

crypto

11:03 am on Aug 5, 2004 (gmt 0)

10+ Year Member



I have tried the full path also. It doesn't work.

Since you have also hosted your site on KDA, do you give the full path? Like:

/hsphere/local/home/client-dir/

or

simply /

This 92 message thread spans 10 pages: 92