473,324 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

calculations in C, userinterface in PHP

I was thinking about building a Web utility with a tried-and-tested
(15 years) C-module.

I was thinking of generating an input-web-page with PHP, which would
send back data to the server (FORM-stuff), where a C-routine would do
the complex calculations, and give output back to the user, again via
a PHP routine.

is this feasible ?
practical ?
smart ?

frgr
Erik
Jul 17 '05 #1
6 1464
"Erik" <et57 at correos calor dot com> wrote in message
news:c8********************************@4ax.com...
I was thinking about building a Web utility with a tried-and-tested
(15 years) C-module.

I was thinking of generating an input-web-page with PHP, which would
send back data to the server (FORM-stuff), where a C-routine would do
the complex calculations, and give output back to the user, again via
a PHP routine.

is this feasible ?
practical ?
smart ?

frgr
Erik


Feasable, yes.

Smart? Well, do what is faster (to implement), easier, less expensive.
Practical? If you can make it happen go for it.

If you only have a few visitors (few thousand) don't worry about it, go for
it any way that you can make it happen.

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #2
Erik wrote:

I was thinking about building a Web utility with a tried-and-tested
(15 years) C-module.

I was thinking of generating an input-web-page with PHP, which would
send back data to the server (FORM-stuff), where a C-routine would do
the complex calculations, and give output back to the user, again via
a PHP routine.

This is not a C question. Could those who reply in comp.lang.php please
remove the crosspost to clc?

Brian Rodenborn
Jul 17 '05 #3
Erik wrote:

I was thinking about building a Web utility with a tried-and-tested
(15 years) C-module.

I was thinking of generating an input-web-page with PHP, which would
send back data to the server (FORM-stuff), where a C-routine would do
the complex calculations, and give output back to the user, again via
a PHP routine.

is this feasible ?
practical ?
smart ?

Sure, I've done it. I think there are ways to integrate other libraries,
but it also works to just create a C-based app and call it from the PHP
code using popen() or the like. Note that this will cause the creation
of process to execute the program, with the attendant overhead.

Brian Rodenborn
Jul 17 '05 #4
Erik wrote:

I was thinking about building a Web utility with a tried-and-tested
(15 years) C-module.

I was thinking of generating an input-web-page with PHP, which
would send back data to the server (FORM-stuff), where a C-routine
would do the complex calculations, and give output back to the
user, again via a PHP routine.

is this feasible ?
practical ?
smart ?

on-topic for c.l.c?

In order: maybe, maybe, see 1, no.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Jul 17 '05 #5
[c.l.c crosspost removed]

Erik <et57 at correos calor dot com> wrote in message news:<c8********************************@4ax.com>. ..
I was thinking about building a Web utility with a tried-and-tested
(15 years) C-module.

I was thinking of generating an input-web-page with PHP, which would
send back data to the server (FORM-stuff), where a C-routine would do
the complex calculations, and give output back to the user, again via
a PHP routine.

is this feasible ?
practical ?
1. http://in.php.net/exec - Simple & Easy

2. http://in.php.net/zend.creating - Bit complex. But, easy to manage
components in future. And highly professional.
smart ?


See what Michael J. Radwin of Yahoo! says.
<http://public.yahoo.com/~radwin/talks/one-year-of-php-oscon2003_files/slide0093.htm>
[Alert: Stop the page before it redirects to parent page]
--
"Success = 10% sweat + 90% tears"
Email: rrjanbiah-at-Y!com
Jul 17 '05 #6
Em Fri, 06 Feb 2004 19:44:54 +0100, Erik escreveu:
I was thinking about building a Web utility with a tried-and-tested
(15 years) C-module.

I was thinking of generating an input-web-page with PHP, which would
send back data to the server (FORM-stuff), where a C-routine would do
the complex calculations, and give output back to the user, again via
a PHP routine.

is this feasible ? Yes practical ? Yes smart ?

Dunno

Perhaps what you want is to write a C CGI frontend to your module (if you
can't make itself a CGI app), and use the PHP to create a page that has a
<form action="your-c-frontend.cgi">. The PHP output would be a little
harder to do, but still possible.

--
Quidquid latine dictum sit altum viditur

Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: lduperval | last post by:
Hi, I`m trying to do date calculations in three types of time zones: local, GMT and specified. The issue I am facing is that I need to be able to specify a date in the proper time zone, and I`m...
3
by: brian kaufmann | last post by:
Hi, I had sent this earlier, and would appreciate any suggestions on this. I need to make calculations for unemployment rate for three different data sources (A,B,C) for many countries and age...
3
by: John M | last post by:
Hi, I've been coming up against a failure of a report to display the result of a simple calculation. I have realised that this calculation cannot take place unless the field I am working on is...
0
by: SJM | last post by:
There is a database which has combo boxes to allow users to select values from pre-set lists of common specifications. The form allows users to enter values that are not in the dropdown lists....
11
by: Erik | last post by:
I was thinking about building a Web utility with a tried-and-tested (15 years) C-module. I was thinking of generating an input-web-page with PHP, which would send back data to the server...
0
by: A_PK | last post by:
Under the Deployment and Setup Project..... there are two Editor.... 1 - Userinterface Editor 2 - Registry Editor... I have created 2 new Forms with build it Four textbox... I just wonder how...
1
by: Grubsy4u | last post by:
Grubsy4u Newbie 7 Posts October 5th, 2007 11:31 AM #1 Report calculations --------------------------------------------------------------------------------
1
by: yogeshtiwarijbp | last post by:
Actually in Userinterface i have a form which contains a drop down list box in that reportname which is stored as a record is populated. After that when user clicks a report in ddl , the...
9
Catalyst159
by: Catalyst159 | last post by:
I have a form which is used to calculate residential Floor Area Ratio (FAR). The form is structured into seven parts as follows: Part A: Maximum FAR and Floor Area: Part B: Gross Floor Area of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.