![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| shell send html email | Ikon | Shell Programming and Scripting | 4 | 09-16-2008 03:03 AM |
| html withing shell scripts,how?? | divzz | Shell Programming and Scripting | 6 | 05-28-2008 09:11 AM |
| Unix Shell Script along with .HTML | ronix007 | UNIX for Dummies Questions & Answers | 3 | 01-07-2008 09:15 AM |
| Converting Shell Script to HTML | davwel | Shell Programming and Scripting | 3 | 10-25-2007 11:25 PM |
| difference between AIX shell scripting and Unix shell scripting. | haroonec | Shell Programming and Scripting | 2 | 04-12-2006 09:12 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how to use html tag in shell scripting
Hai friends
I have a small doubt.. how can we use html tag in shell scripting code : echo "<html>" echo "<body>" echo " welcome to peace world " echo "</body>" echo "</html>" output displayed like this: <html> <body> welcome to peace world </body> </html> but i need output in this format, " hai ". i saved the file in .sh format can any body help me.. thanks rex |
|
||||
|
Quote:
<html> <body> "hai" </body> </html> can u give some other suggestion |
|
||||
|
HTML is a "Hyper Text" display language and can be only used to display text in a formated manner via a web browser. PHP is the most widely used scripting language and can be used on the command line to produce local results or serve the results to a web browser request via the internet/intranet . i.e. format and display a page viewable with a web browser. However, if you want to serve the html up to web clients you will need to do so via a web server.
You can use the code you supplied but you have to display it with a web browser. The web browser will read the tags and display the contents without displaying the tags. Simply put - scripts are used to perform tasks and commands and the html tags are used to display results in a formatted fashion with a web broweser. |
|
||||
|
can u give some example
hai can u give some example
Quote:
|
|
||||
|
A basic example can be found here PHP in HTML - HTML inside PHP - PHP embed HTML Code:
<html> <title>HTML with PHP</title> <body> <h1>My Example</h1> <?php //your php code here ?> <b>Here is some more HTML</b> <?php //more php code ?> </body> </html> You can remove the php script and generate a html page by using echo or print on each line with a bash or ksh script and then open the doc with a web browser to view the document. FYI - The php script won't work unless it's on a webserver. Last edited by carlos25; 11-17-2008 at 09:21 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|