F
Francesco
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
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