php-windows Digest 19 Mar 2006 19:43:49 -0000 Issue 2915

Topics (messages 26769 through 26771):

CubeCart Experience on Windows/IIS?
        26769 by: Jeff Chastain

Handle a serial communication on COM1
        26770 by: select now
        26771 by: Gonzalo Monzón

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
I have very little experience with PHP, but I am looking for an
inexpensive/free shopping cart solution for my wife and came across
CubeCart.  It had everything I was looking for as well as a good price, but
I am having some difficulties with the installation.  It seems everybody on
the CubeCart forums is a Linux/Unix person and only wants to bash Windows
rather than offer much help.  So, I wanted to see if anybody here could
offer me some pointers.
 
The installation when just fine and I can access the administration part of
the cart without issue.  However, when I attempt to access the store front,
I get a series of errors like this:
 
    Warning: include(language/en/home.inc.php) [function.include
<http://store.kcoutlet.com/function.include> ]: failed to open stream: No
such file or directory in
D:\Admentus\domains\kcoutlet.com\wwwroot2\includes\content\index.inc.php on
line 38

    Warning: include() [function.include
<http://store.kcoutlet.com/function.include> ]: Failed opening
'language/en/home.inc.php' for inclusion (include_path='.;C:\PHP\includes')
in D:\Admentus\domains\kcoutlet.com\wwwroot2\includes\content\index.inc.php
on line 38
 
In following through the code, basically this is a nested include.  The root
index.php file has the following line:
 
    include("includes/content/index.inc.php");

Then, the includes/content/index.inc.php file has the following line at line
38 which is causing the error message:
 
    include("language/".$lang_folder."/home.inc.php");

$lang_folder is set to "en" in the index.php file, resulting in the
include("language/en/home.inc.php") code in the error message.  I have
checked and the file (/language/en/home.inc.php) does exist, so it is not
something that simple.
 
So, does anybody have any experience with CubeCart or could just offer me
some basic PHP debugging help to trace this issue down?
 
Thanks
-- Jeff
 
 
 

--- End Message ---
--- Begin Message ---
Hi,

I intend to manage a serial communication with a
cash register trought COM1.

Everything works fine, only after I set manually an open connection to
COM1 with an Windows32 dedicated apps. I want to eliminate this
proceeding to manage this communication by main php application.

I want to find any resources (man, docs) to help myself to do this. I
look for PHP functions (or applications) to manage the connection with
this device.

Thank you in advance.

--
best wishes,
a programmer [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
select now escribió:

Hi,

I intend to manage a serial communication with a
cash register trought COM1.

Everything works fine, only after I set manually an open connection to
COM1 with an Windows32 dedicated apps. I want to eliminate this
proceeding to manage this communication by main php application.

I want to find any resources (man, docs) to help myself to do this. I
look for PHP functions (or applications) to manage the connection with
this device.

Thank you in advance.

--
best wishes,
a programmer [EMAIL PROTECTED]

Hi,

I think you need to look for Win32 API.

If you are using PHP4, you need the php_win32api extension, otherwise php_ffi should be the right one on PHP5.

That should do the work for accessing to the win32 api functions.

I believe that's the only way (going thru the win32 api). I don't know of the existence of any other package or extension to do such a job -managing a com port device-.

As I say, you need to use some win32 api calls to manage the com port device, and then you can handle the data with usual PHP code. Please somebody correct me if I'm wrong...

The other way could be to use an auxiliary program, as there are some that convert a COM port in a TCP port so you can communicate as if you where on sockets (tcp2com I remember its called, and it is not the only one) but this way could have some anoyances, anyway perhaps it is a easier way for doing the job, but you relay on a external app for that to work this way and that is not good.

Hope it helps.

Regards,
Gonzalo
http://gmc.serveisw3.net

--- End Message ---

Reply via email to