Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
BrainlessLabs.com 11-Jan-12 3:33am    
What kind of error/exception you are getting?
mstftrn 11-Jan-12 3:36am    
i cannot open my php page (on localhost). i think a port usage conflict occurs. Both try to use port 20, perhaps...

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900