LinuxQuestions.org
Register a domain and help support LQ
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, 04: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, 05:16 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
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, 03: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, 03:16 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 05: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, 05:50 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 6 06-20-2011 08:28 PM
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 09:43 AM
Search & Replace Technique to Fix html HREFs w/o html extension donv2 Linux - Newbie 1 01-31-2007 12:59 AM
index.html is not noticed in /var/www/html xviddivxoggmp3 Red Hat 1 04-23-2006 07:30 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 06:06 AM


All times are GMT -5. The time now is 08:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration