C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 20th, 2003, 07:03 AM
kiki88 kiki88 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 2 kiki88 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question please help, php and c program (urgent)

Is it possible to call a c program in php?

I have created a circuit (light sensors) and control it by a c program, this c program can show the status of the circuit and reset the circuit. However, it can only run in dos. I need to link the c program to the broswer, so that the user can crontol the circit and view the status of it using the browser. Is it possible to do it in php or there is some other ways to do it? can anyone help? thx!

Reply With Quote
  #2  
Old March 20th, 2003, 08:53 AM
Narek Narek is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Yerevan, Armenia
Posts: 224 Narek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 1 m 30 sec
Reputation Power: 6
Send a message via ICQ to Narek
Php has a function called system(). It basically takes a command string as an argument and returns the result straight into the browser. I've tried this only in unix but i think it should be ok under microsoft's stuff.

-Nar

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > please help, php and c program (urgent)


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway