Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: jumpship on January 30, 2003, 11:30:41 PM

Title: need help with gW3S scripts
Post by: jumpship on January 30, 2003, 11:30:41 PM
I am quite new to Arexx and would like to ask for some help! Basically what I would like to do is to consturct a website that is easy to update. The way I would like to do this would be by having an XGI script that setup the layout for the page and then have it display a text file (with any html formatting) where ever it may be needed.

For example on my exsisting website I have a "News" colom, so basically the XGI script would generate the page then call the text file that held the news and print it on the page.

Like I say, I am new to Arexx (not to programming in generall although maybe a bit rusty!) and would like to know if a) this is possable, and b) how I would go about opening the text file and then "printing" it into the document.

Thanks!  :-)
Title: Re: need help with gW3S scripts
Post by: jumpship on January 31, 2003, 05:28:40 PM
No one?

 :-(
Title: Re: need help with gW3S scripts
Post by: carls on January 31, 2003, 05:57:43 PM
This would be easier to do with inline ARexx.

Here's an example:
http://carls.1av10.nu/w3s/example/

html_layout.txt - this would be the HTML file that executes the inline ARexx.

getnews.rx - this is the script that reads the news

newslist.txt - the news (one news item per line)


This is just a very simple example, but at least it's a start! If you are new at ARexx I would also recommend you to download ARexxGuide from Aminet, it's a great AmigaGuide with both tutorials, examples and a language reference!

Happy hacking :-)
Title: Re: need help with gW3S scripts
Post by: jumpship on January 31, 2003, 07:09:07 PM
now that is perfect!

You are a star!

have a :pint: of finest on me! :-)

Now all I need to do is find out how to host this using my cable connection while going through a Win2k with Internet sharing!
Title: Re: need help with gW3S scripts
Post by: carls on January 31, 2003, 07:20:42 PM
Actually, I have a couple of beers on cooling...
But I'd better save them for tomorrow. :-)