Unix Programming - Persistent linux program called by web...

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2006 > Persistent linux program called by web...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Persistent linux program called by web...
vigotti@libero.it

2006-01-29, 9:32 pm



hi, i'm not english so excuse me for the grammatical/sintax errors..

i'm relly going crazy looking for that...
i need an example code or something that could help me to create an
very simpe c application that have to do this:

run on a linux server like a daemon and manage variables printing out
the value.. for example...

the appz code:
// $n1 (passed var by browser)
if(!$sum) $sum =0;
$sum = $sum + $n1;
print $sum;

####################

so if you wrote in the browser

http://www.site.com:8000/appz.dll?n1=5
you get back
5

than someone in internet do
http://www.site.com:8000/appz.dll?n1=2
he get back 7

and again if someone else then type
http://www.site.com:8000/appz.dll?n1=5
he get back 12

(yes i know that if i restart computer the count start again from 0..
i'll save the variable every 1 minutes on a file)

and more....
i'm very interested to know if this is possible... without using apache
wich is very slow...
the program should handle millions of request/day... and usually i
should use apache+php+file(or)mysql to do this operation...
and requires a lot of resources at every hits....
i think that this program stored on a ramdisk partition could do the
things really faster..


if someone could help me you make me really happy..
Thanks,
Francesco

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com