LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-30-2005, 03:00 PM   #1
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Rep: Reputation: 30
Web Page Development Application/Language


Hello Everyone,

I've just recently started up a web page. All I have to guide me is the few weeks I spent learning HTML in a high school course and google. The main problem I'm having is keeping all pages up to date if I make one change to the format of one (like adding a menu item that needs to be on all pages), I want all to be updated likewise.

Now, I'm sure this is where a scripting language or some sort of application comes into play, but I don't know where to go for help. Perhaps someone could point me towards some sort of resource for help, like a book, webpage, etc. or an application that makes something like this easy.

I know a little about PHP, but I don't think my server space supports it. Thanks in advance for any help you guys can give.
 
Old 05-30-2005, 03:10 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
you *could* use xslt to generate pages based on xml files, but that won't mix very well with non-xml (not with the tool I used at least). Generally I wouldn't recommend this.

PHP is probably a *lot* better. Google for tutorials.

You could also look into python or perl. JavaScript is not a good idea: people are advised not to run it (but by security experts, so they don't listen).

here's a few links:
http://www.php.net/tut.php
http://www.w3schools.com/php/default.asp

http://www.python.org

Chances are that if your server doesn't support PHP, it doesn't support Python either.

... why not host your page yourself then?
 
Old 05-30-2005, 03:23 PM   #3
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Original Poster
Rep: Reputation: 30
Hey thanks for your quick reply. I don't host my own page just because at this point I'm not ready to deal with the installing/configuring/security problems that come with web page hosting. Plus my internet connection is very slow.

I just talked with someone from the support department and she told me that support is very limited, but this is what is available (as it says on the website):

CGI (Perl) Support
Server Side Includes (SSI)

Not exactly sure about what these are, any thoughts?
 
Old 05-30-2005, 03:39 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
Maybe you want to look at www.zope.org
and learn python? :}


Cheers,
Tink
 
Old 05-30-2005, 03:52 PM   #5
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Original Poster
Rep: Reputation: 30
I'm not sure where I'm supposed to look on that page for documentation on python, perhaps cause I don't know what Zope is. Any help?
 
Old 05-30-2005, 06:17 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
Zope is a python based product, it's a web object
publishing framework, a highly configurable and extensible
web-content management system.


Cheers,
Tink
 
Old 05-30-2005, 07:05 PM   #7
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Here's a perl tutorial with CGI scripts in mind:
http://archive.ncsa.uiuc.edu/General...ing/PerlIntro/
(google "perl tutorial", feel lucky)

Note that perl can also run from the command line (unlike earlier versions of PHP; it got added in PHP5 iirc)

I hope perl isn't too confusing. I think it's horribly unreadable, unstructured, illogical and full of special cases, but that's just me.

(sorry JAPHs; let's not start a holy war; I'd rather plea for peace)

--Jonas

Last edited by jonaskoelker; 05-30-2005 at 07:10 PM.
 
Old 05-30-2005, 10:44 PM   #8
towlie
Member
 
Registered: Apr 2004
Location: U.S.
Distribution: slackware 10.0
Posts: 110

Rep: Reputation: 15
Quote:
The main problem I'm having is keeping all pages up to date if I make one change to the format of one (like adding a menu item that needs to be on all pages), I want all to be updated likewise.
Not sure if you know this or not, but css (cascading style sheets) help with this
a lot. If you're doing a web page, you'll eventually want to go to the
tutorials at www.w3schools.com


Also my own 2 cents on the language, IMO php is better than perl for
web development. It's a more readable language (so it's easier to
maintain), it's easier to write, and it's usually a little easier to
configure with the web server. Couldn't hurt to ask your host
about offering it in the future.

As far as perl, www.perlmonks.org is a sight that might
help you, but some of their stuff is kinda advanced though.
 
Old 05-31-2005, 12:41 AM   #9
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Hi,

I agree with jonaskoelker. You don't need to script unless you want to have dynamic html that accept input, store things in your website, allow you to search contents and that kind of things. If you have common menus and styles, you can do that with HTML (using a frame for the menu, for instance) and CSS (for all the appareance, like colors and fonts). You can learn all this stuff (and a lot more) in http://www.w3schools.com , which contains excellent tutorials with interactive examples.

Hope this helps...
 
Old 06-02-2005, 10:58 AM   #10
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Original Poster
Rep: Reputation: 30
Thanks for the great links, looks like I'm on my way!
 
Old 06-06-2005, 01:55 PM   #11
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
Thanks for the great links, looks like I'm on my way!
You're welcome (on my part, at least)

You may also want to have a look at http://jonaskoelker.homeunix.org/ (that's my blog & misc. crap) for some real-life (but none the less lame ) web page sources.

hth --Jonas
 
Old 06-06-2005, 02:34 PM   #12
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
The main problem I'm having is keeping all pages up to date if I make one change to the format of one (like adding a menu item that needs to be on all pages), I want all to be updated likewise.

dubya,

Learn to use .css files (style sheets). It's very easy. Find some good info here: http://www.w3schools.com/

What you want to do (as quoted above my reply) has nothing to do with scripting or CGI.

That said, the next thing you'll probably want to learn is either Perl or Python, and then how to make those Perl/Python scripts run on behalf of your ISP's web server (this is what "CGI scripts" are -- you write some Perl/Python/Ruby/PHP/C/whatever code that spits out some html when you point your browser at them).
 
Old 06-06-2005, 09:22 PM   #13
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Original Poster
Rep: Reputation: 30
Thanks for the help, and I like your page design, jonaskoelker.

One more thing I want to know that I haven't found in the CSS tutorial; can you keep recurring menus uptodate with this stuff? For example, jonaskoelker, on your page, you have a menu on the right that appears on all the pages I looked at. If you wanted to add an item to that menu, would you have to manually edit each one of those pages to include that new item?

Thanks again for everyone's help.
 
Old 06-07-2005, 02:46 AM   #14
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
I like your page design, jonaskoelker.
Thank you.

Quote:
If you wanted to add an item to that menu, would you have to manually edit each one of those pages to include that new item?
No, I would edit makemenu.xml to contain the new item; then I would run make to update the pages.

Did you manage to build my page locally? If not, try so (sorry about how messy it all is).

hth --Jonas
 
Old 06-07-2005, 03:28 AM   #15
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
I never tried, but I've read on W3C pages that includes could be done in HTML using the OBJECT tag.

From http://www.w3.org/TR/1999/REC-html40...t/objects.html
Code:
Type of inclusion | Specific element | Generic element 
...
Another HTML document | IFRAME | OBJECT

...

For instance, the following line embeds the contents of embed_me.html
at the location where the OBJECT definition occurs.

...text before...
<OBJECT data="embed_me.html">
Warning: embed_me.html could not be embedded.
</OBJECT>
...text after...

Recall that the contents of OBJECT must only be rendered if the file
specified by the data attribute cannot be loaded.
From http://www.w3.org/TR/WCAG10-HTML-TECHS/#alt-frames
Code:
Example.

<P>
<OBJECT data="nav.html">
Go to the <A href="nav.html">table of contents</A>
</OBJECT>
It would be good if this did actually work. Keep us informed if you try.

Yves.

Last edited by theYinYeti; 06-07-2005 at 03:29 AM.
 
  


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
language for linux development jkmartha Linux - Newbie 1 08-02-2005 02:06 AM
Any tool is there for speedy Web Page development? anindyanuri Fedora 5 03-07-2005 06:51 AM
Application development in C++ what to use? name_in_use450 Programming 1 08-02-2004 05:44 PM
Easy 2 use web page application? Braveheart1980 Linux - Software 4 03-01-2004 10:35 PM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:57 AM.

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