sbibek Posted May 24, 2013 Share Posted May 24, 2013 I am new to php (actually new to web programming). I do code in c++. I am writing a software that is to share the database with php page. My question is that can I connect to the custom database server(which i wrote in c++ instead of using mysql or something as such) that shares database with my application and that with php page too....suggestion and code snippet will be very useful....thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/278352-remote-custom-server-access-in-php/ Share on other sites More sharing options...
Muddy_Funster Posted May 24, 2013 Share Posted May 24, 2013 As long as there is an ODBC layer on the interface for the database you can connect to it. Quote Link to comment https://forums.phpfreaks.com/topic/278352-remote-custom-server-access-in-php/#findComment-1432083 Share on other sites More sharing options...
sbibek Posted May 25, 2013 Author Share Posted May 25, 2013 I wanna develop scenario as: I have a database server that has its own query instruction sets and reply mechanism.. So I want php to connect to this server and execute the queries and get the results out of it.. I appreciate the ODBC layer....but ain't php flexible to support my scenario?.....Please help me out... Quote Link to comment https://forums.phpfreaks.com/topic/278352-remote-custom-server-access-in-php/#findComment-1432193 Share on other sites More sharing options...
Solution kicken Posted May 25, 2013 Solution Share Posted May 25, 2013 You can always just use plain sockets and implement your server's protocol in PHP. Look at the stream_socket_client and related functions. Quote Link to comment https://forums.phpfreaks.com/topic/278352-remote-custom-server-access-in-php/#findComment-1432287 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.