Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 19th, 2005, 12:15 AM
Tomy Jon
Guest
 
Posts: n/a
Default How do I call a program

Howdy

What do I use to call a program in html, in a known directory, and
then have control return to the next html step ?

Thanks tom
  #2  
Old August 19th, 2005, 01:45 AM
David Ross
Guest
 
Posts: n/a
Default Re: How do I call a program

Tomy Jon wrote:[color=blue]
>
> Howdy
>
> What do I use to call a program in html, in a known directory, and
> then have control return to the next html step ?
>
> Thanks tom[/color]

If you want a program to execute before a Web page is loaded, use a
server-side include (SSI). Reference the SSI in the BODY of the
page. The server will execute the SSI before delivering the HTML
to your client (browser). SSIs are often UNIX or Perl scripts, but
other SSIs are possible.

Often, an SSI contains the following statements:
print 'Content-type: text/html'
print ''
followed by a print statement that embeds some text (e.g., a
counter) into the HTML being delivered. However, that is not
necessary. You can instead have an SSI that merely executes. That
SSI can, in turn, call another program that is not a script.

I'm not sure what you meant by "have control return to the next
html step". When a server delivers a file (HTML, TXT, etc) to a
client, the entire file is delivered along with any supplemental
files appropriately referenced by the requested file (e.g., CSS,
JPEG).

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
  #3  
Old August 20th, 2005, 05:25 PM
Tomy Jon
Guest
 
Posts: n/a
Default Re: How do I call a program

Thanks Dave, I will play with SSI and learn how it works.
tom





On Thu, 18 Aug 2005 17:39:53 -0700, David Ross <nobody@nowhere.not>
wrote:
[color=blue]
>Tomy Jon wrote:[color=green]
>>
>> Howdy
>>
>> What do I use to call a program in html, in a known directory, and
>> then have control return to the next html step ?
>>
>> Thanks tom[/color]
>
>If you want a program to execute before a Web page is loaded, use a
>server-side include (SSI). Reference the SSI in the BODY of the
>page. The server will execute the SSI before delivering the HTML
>to your client (browser). SSIs are often UNIX or Perl scripts, but
>other SSIs are possible.
>
>Often, an SSI contains the following statements:
> print 'Content-type: text/html'
> print ''
>followed by a print statement that embeds some text (e.g., a
>counter) into the HTML being delivered. However, that is not
>necessary. You can instead have an SSI that merely executes. That
>SSI can, in turn, call another program that is not a script.
>
>I'm not sure what you meant by "have control return to the next
>html step". When a server delivers a file (HTML, TXT, etc) to a
>client, the entire file is delivered along with any supplemental
>files appropriately referenced by the requested file (e.g., CSS,
>JPEG).
>
>--
>
>David E. Ross
><URL:http://www.rossde.com/>
>
>I use Mozilla as my Web browser because I want a browser that
>complies with Web standards. See <URL:http://www.mozilla.org/>.[/color]

 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles