LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   html + c++ (https://www.linuxquestions.org/questions/linux-newbie-8/html-c-612939/)

av.dubey 01-11-2008 03:21 PM

html + c++
 
i have made a simple program using shell
now can ne one convert it in c++ so that i can run it in the same way as i was running it using shell ie through apache

shell script is

#!/bin/bash

echo "Content-type: text/html"
echo ""
echo <html><body bgcolor=green> hi man </body></html>

#End of programme

jailbait 01-11-2008 04:16 PM

Yes, you can do this program in C usinfg the printf command. Here is how to do color with printf:

http://linuxgazette.net/issue65/padala.html

-------------------------
Steve Stites

av.dubey 01-13-2008 02:04 PM

hey this page was not helpful to me in ne way....
actually i wanted to link html page with c++ just like php and shell
can neone tell how can i program this thing in c++...
( the same thing )

#!/bin/bash

echo "Content-type: text/html"
echo ""
echo <html><body bgcolor=green> hi man </body></html>

#End of programme

Tinkster 01-13-2008 02:16 PM

Can you please stop talking sms-ish? This isn't yahoo groups or bebo.

When you say "link html page with c++ just like php and shell" are you trying
to create dynamic HTML using C++, or just need some C++ code that outputs a
static HTML page?



Cheers,
Tink

av.dubey 01-21-2008 04:07 PM

ya i want to create a dynamic html page...that takes some input from the user and connect to database to further process the output and display the same on html page only ...

Tinkster 01-21-2008 04:50 PM

I've never used it, but have a look at Wt ... may do just what you're
after. If it's not to your liking, use http://freshmeat.net with its
search-feature ... I'm sure I've seen other, similar projects there.



Cheers,
Tink


All times are GMT -5. The time now is 03:02 PM.