C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 7th, 2003, 08:36 AM
Rooseboom's Avatar
Rooseboom Rooseboom is offline
busy...is there any other way?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Amersfoort, Netherlands
Posts: 259 Rooseboom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 9 m 43 sec
Reputation Power: 12
running a c++ service on WinXP combined with PHP

Hi,

Hope I am in the right place with this, but I am looking all over for the following:

I work with PHP mainly (only language I know actually) and have worked out a script but have trouble with the performance.

Now to overcome these problems I'd like to read some data into RAM memory when the server is first booted and use the memorydata in the scripts.

PHP has little possibilities for caching or similar stuff. The data is stored in a MySQL db and in plain txt files.

I know it is possible to let PHP and C++ interact and thought of the following:

write a c++ program which runs as a service on WinXP (the OS used). This program reads the data into memory and PHP interacts with the C++ program to get the data.

Main issues with this solution for me are:
- I haven't got a clue on how to write the C++ program
- I don't know how to let PHP and C++ interact

So my questions are obvious i guess:
- Does anyone know where I can get the c++ code (it must be out there) as a template for the thing I need?
- How do I let PHP and C++ interact?

Help on this is (very) much appreciated.....it is the last bit of coding/tuning I need done before I can get my app online

Reply With Quote
  #2  
Old June 8th, 2003, 04:56 AM
ghatzhat ghatzhat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 361 ghatzhat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 18 m
Reputation Power: 11
would the mysql HEAP table type solve your problem?

http://www.mysql.com/doc/en/HEAP.html
__________________
Little more than a playground for the bugs that live beneath us...

Reply With Quote
  #3  
Old June 8th, 2003, 05:48 AM
Rooseboom's Avatar
Rooseboom Rooseboom is offline
busy...is there any other way?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Amersfoort, Netherlands
Posts: 259 Rooseboom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 9 m 43 sec
Reputation Power: 12
Nope...since it is not only data from MySQL...

Reply With Quote
  #4  
Old June 9th, 2003, 07:02 AM
Rooseboom's Avatar
Rooseboom Rooseboom is offline
busy...is there any other way?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Amersfoort, Netherlands
Posts: 259 Rooseboom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 9 m 43 sec
Reputation Power: 12
I've managed the first part, writing a C++ program en load the data into memory...

...now for the second part...how do I reach this data with PHP?

Thx for any help

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > running a c++ service on WinXP combined with PHP

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap