LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2008, 03:21 PM   #1
av.dubey
Member
 
Registered: Nov 2007
Posts: 148

Rep: Reputation: 15
Question 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
 
Old 01-11-2008, 04:16 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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
 
Old 01-13-2008, 02:04 PM   #3
av.dubey
Member
 
Registered: Nov 2007
Posts: 148

Original Poster
Rep: Reputation: 15
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
 
Old 01-13-2008, 02:16 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 01-21-2008, 04:07 PM   #5
av.dubey
Member
 
Registered: Nov 2007
Posts: 148

Original Poster
Rep: Reputation: 15
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 ...
 
Old 01-21-2008, 04:50 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge Of Html Files Into A Single Html (or Pdf) fiomba Linux - Software 10 05-11-2018 11:28 AM
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 08:43 AM
Search & Replace Technique to Fix html HREFs w/o html extension donv2 Linux - Newbie 1 01-30-2007 11:59 PM
index.html is not noticed in /var/www/html xviddivxoggmp3 Red Hat 1 04-23-2006 06:30 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration