如何使PHP和C ++同时使用mysql? [英] How to enable both PHP and C++ to use mysql at the same time ?

查看:60
本文介绍了如何使PHP和C ++同时使用mysql?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我一直在使cpp程序和php代码一起使用mysql时遇到问题.

当我安装Connector/NET以便我的cpp程序到达mysql数据库时,php代码不再可用了,这很可能是因为它们尝试使用相同的端口(端口20?).

我的php页面是医疗用页面.
我的cpp代码从医疗设备(脉搏血氧仪)读取信息,并将其存储到txt文件中.它可以在打开脉搏氧合器设备时自动启动,并在关闭时完成. (将后台作为系统进程运行)

我正在尝试使cpp程序将这些信息存储到mysql,并希望我的php代码从mysql数据库读取这些数据,显示图形等.

我将Visual Studio 2008 exp用于cpp,将xammp用于php,localhost,mysql等...

如何使它们两个都到达mysql数据库而不阻塞另一个?
请帮帮我!
感谢

Hi,
i have been having problems to make both a cpp program and a php code together to use mysql.

when i install Connector/NET in order for my cpp program to reach mysql database, php code cannot anymore, most probably because of the fact that they try to use the same port (port 20?).

My php page is a medical-purposed page.
My cpp code reads information from a medical device (pulseoximeter) and store it to a txt file. it can automatically starts when the pulseoximter device is opened and finishes when it is closed. (running background as a system process)

i am trying to make cpp program to store those info to mysql and want my php code to read those data from mysql database, display graphics etc.

i use visual studio 2008 exp for cpp and xammp for php, localhost, mysql etc...

how to make both of them to reach mysql database without blocking the other?
Please help me!
Thanks

推荐答案

localhost (表示此计算机)是为回送网络接口地址指定的标准主机名.该名称也是保留的顶级域名[1](请参阅.localhost),请保留该名称以避免与较窄的定义作为主机名混淆.(从WIKI复制)

遵循链接 [链接 [ ^ ]了解如何从远程计算机进行连接.您还可以阅读此链接 [
localhost (meaning this computer) is the standard hostname given to the address of the loopback network interface. The name is also a reserved top-level domain name[1] (cf. .localhost), set aside to avoid confusion with the narrower definition as a hostname.(copied from WIKI)

follow the link[^] to get some example.

Finally follow the link[^] to get the idea of how to connect from remote machine. you can also read this link[^]. please do little searching on google


这篇关于如何使PHP和C ++同时使用mysql?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆