homepage Welcome to WebmasterWorld Guest from 54.205.207.53
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
Advise – static html, php, cms
static html php cms
horseatingweeds

5+ Year Member



 
Msg#: 3346944 posted 10:37 pm on May 22, 2007 (gmt 0)

I am currently developing a website that I plan to be exhaustive on the subject of a certain breed of dog. I also plan for a forum and listings for breeders, trainers, and veterinarians.

I currently code everything in html with css, with seo and accessibility as priorities. I plan on learning php next. Currently, I am tutoring my self in javascript and would like to get a better handle on it before I move on.

I’ve been looking at some cms like Joomla, pondering their advantages for adding content. The trouble with continuing static html pages is when I need to make a change, such as adding a menu item and so on. Going through 50 pages is mind numbing and I always miss something. Once the site is to 200 it will be a monstrosity for such changes.

My Question:
How should I develop this type of website?
Should I stay with html
Should I get after on of these cms
Should I just stay with html until I understand php, then convert to php if it look better

 

thecoalman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3346944 posted 11:54 pm on May 22, 2007 (gmt 0)

I don't see the reason to not start using php now, your example of a menu is quite easy. Start with simple things and work your way into it:


<html>
<head>
<title></title>
</head>
<body>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/somedirectory/mymenu.php');?>
</body>
</html>

mynemu.php would contain the html for your menu, just use the include line on every page. You can take it step further and do something like this:


<html>
<head>
<title></title>
</head>
<body>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/somedirectory/header.php');?>
<!-- Content goes here -->
<?php include($_SERVER['DOCUMENT_ROOT'] . '/somedirectory/footer.php');?>
</body>
</html>


As far as listings a search will bring up articles on how to create a database driven list. This is actually fairly simple to do. There are few applications avaialble that easily set up a testing server on a windows computer complete with php, apache, mysql ... find one and install it for testing.

horseatingweeds

5+ Year Member



 
Msg#: 3346944 posted 12:27 am on May 23, 2007 (gmt 0)

That's good advice thecoalman. Thanks

My ultimate for the listings is to have the option for users to leave feedback on the different listings. I think I should learn php.

I think I'm doing something wrong though. This is what I have added to my html page:

<!-- Menu Start -->
<div id="nav">
<?php include($_SERVER['DOCUMENT_ROOT'] . 'includes/main_menu.php');?>
</div>
<!-- Menu End -->

THis is the .php I made and put in an includes folder:

<ul>
<li><h3><a href='index.htm'>Home</a></h3></li>

<li><h3><a href='about.htm'>About Dobermans</a></h3>
<ul>
<li><a href='history.htm'>History</a>
<ul>
<li class='top'><a href='history_1.htm'>Karl Dobermann</a></li>
<li><a href='history_2.htm'>Breeds that Made the Doberman</a></li>
<li><a href='history_3.htm'>The First Dobermans</a></li>
<li><a href='history_4.htm'>After Karl Dobermann</a></li>
<li><a href='history_5.htm'>Doberman Crosses</a></li>
<li><a href='history_6.htm'>World War I</a></li>
</ul>
</li>
<li><a href='temp.htm'>Temperament</a>
<ul>
<li class='top'><a href='temperament_1.htm'>Understanding Doberman Temperament</a></li>
<li><a href='temperament_2.htm'>Temperament Attributes</a></li>
<li><a href='temperament_pack.htm'>Pack Mentality</a></li>
<li><a href='temperament_dominance.htm'>Dominance Aggression</a></li>
<li><a href='temperament_family.htm'>Family / Pack</a></li>
<li><a href='temperament_children.htm'>Children</a></li>
<li><a href='temperament_faq.htm'>Temperament FAQ's</a></li>
</ul>
</li>
<li><a href='sport.htm'>Sports</a>
<ul>
<li class='top'><a href='schutzhund.htm'>Schutzhund</a></li>
<li><a href='flyball.htm'>Flyball</a></li>
<li><a href='obedience.htm'>Obedience</a></li>
<li><a href='agility.htm'>Agility</a></li>
<li><a href='tracking.htm'>Scent Tracking</a></li>
</ul>
</li>
<li><a href='uses.htm'>Uses</a></li>
<li><a href='speak.htm' class='bottom'>Speaking Doberman</a></li>
</ul>
</li>

<li><h3><a href='puppies.htm'>Doberman Puppies</a></h3>
<ul>
<li><a href='buying.htm'>Buying a Puppy</a>
<ul>
<li class='top'><a href='buying_1.htm'>Breeders to Avoid</a></li>
<li><a href='buying_2.htm'>Master Breeders</a></li>
<li><a href='buying_3.htm'>Find a Breeder</a></li>
<li><a href='buying_4.htm'>Questions to Ask</a></li>
<li><a href='buying_5.htm'>Health Questions</a></li>
<li><a href='buying_6.htm'>Straight Questions</a></li>
<li><a href='buying_7.htm'>Breeder's Questions</a></li>
<li><a href='buying_8.htm'>Visiting the Breeder</a></li>
<li><a href='buying_9.htm'>Choosing a Puppy</a></li>
<li><a href='buying_10.htm'>Types of Dobermans</a></li>
<li><a href='buying_11.htm'>Puppy Costs</a></li>
</ul>
</li>
<li><a href='puppy_preparation.htm'>Preparing for a Puppy</a>
<ul>
<li class='top'><a href=''>Puppy Proofing the Home</a></li>
<li><a href=''>Puppy Proofing the Back Yard</a></li>
</ul>
</li>
<li><a href='ptrain.htm'>Training</a></li>
<li><a href='cropping.htm'>Ear Cropping</a>
<ul>
<li class='top'><a href='cropping_1.htm'>Controversy</a></li>
<li><a href='cropping_2.htm'>Art for Ear Cropping</a></li>
<li><a href='cropping_3.htm'>Ear Cropping Process</a></li>
<li><a href='cropping_4.htm'>Posting and Taping Lesson</a></li>
<li><a href='cropping_5.htm'>Problems and Solutions</a></li>
</ul>
</li>
<li><a href='planed.htm' class='bottom'>Planning Litters</a></li>
</ul>
</li>

<li><h3><a href='adogs.htm'>Available Dogs</a></h3>
<ul>
<li><a href='avpuppies.htm'>Puppies</a></li>
<li><a href='tdogs.htm'>Trained Dogs</a></li>
<li><a href='planed.htm' class='bottom'>Planning Litters</a></li>
</ul>
</li>

<li><h3><a href='our.htm'>Our Dogs</a></h3>
<ul>
<li><a href='drayko.htm'>Drayko</a></li>
<li><a href='stormee.htm'>Stormee</a></li>
<li><a href='jewel.htm'>Jewel</a></li>
<li><a href='kira.htm' class='bottom'>Kira</a></li>
</ul>
</li>
</ul>

I loaded it onto the web server but the menu just isn't there.

Steerpike

5+ Year Member



 
Msg#: 3346944 posted 1:51 am on May 23, 2007 (gmt 0)


Save your html file as a .php file.

You have <?php?> tags in the code, but you have a .html extension on the file - if the server hasn't been set up to render .html as php then it'll just look at an html file and go:
'Oh, .html, I can just throw this straight to the browser.'
Making the file .php makes the server go:
'Oh, .php, I better run all the php code in this file before I send it to the browser.'

horseatingweeds

5+ Year Member



 
Msg#: 3346944 posted 4:18 am on May 23, 2007 (gmt 0)

Ha, ok - of course.....

Good glory and an apple pie! I have to change everyone to .php!

* reluctant sigh of acceptance *

PHP is cool. At first I got a really through error message. With my nil knowledge of php, I was sill able to deduce the problem with my file extension having to do with hosting multiple domains.

I think I'll go ahead and get that php book. I can polish JavaScript later. PHP is looking much more useful.

thecoalman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3346944 posted 5:53 am on May 23, 2007 (gmt 0)

Sorry, should have mentioned the content page had to be saved with a php extension ;) .. As mentioned you can have the server parse the HTML pages as php but unless you already have an established site my suggestion would be not to do that.

My ultimate for the listings is to have the option for users to leave feedback on the different listings.

As I suggested above If you do search for php and mysql tutorials you'll find this is very easy to do but the downside is user input can present many security problems, make sure to thoroughly investigate making any scripts safe which is bigger hurdle than making the script work. A listing and comments box won't require more than 10 or 20 lines of php code...

See the sticky e-mail I sent you with a link to a excellent tutorial.

horseatingweeds

5+ Year Member



 
Msg#: 3346944 posted 6:19 am on May 23, 2007 (gmt 0)

Thanks for the link thecoalman. I plan to explore it properly. I also plan to get a sturdy book I have had my eye on for beginning php. I have Apache on my machine now but I need to put the rest of the stuff on there too. There is a package with Apache php and sql ready-made.

I have done a lot of online learning, mostly from reading everyone's forum but I find my learning is greatly optimized if I grind through a few pounds of book.

This php business is pretty cool. I'm going to strip down my pages with this includes element. This will be a significant improvement. Thanks for the good suggestion.

Before I have enough traffic and interested listings I should have significant time to learn necessary security measures, unless things take off suddenly. If that happens I will regard it a one of those 'good' problems.

physics

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3346944 posted 5:10 pm on May 23, 2007 (gmt 0)

It sounds like you're getting a chance to learn a lot about PHP coding, etc while you're writing about something you like :)
However, if I were you I'd consider basing your site off of WordPress and using custom code for any things that WordPress (and extensions) cannot do.
There are just so many advantages to using blog software like WordPres for an information site (RSS feeds, built in search, blog comments, backend admin console, pinging, extensions that can create a sitemap for you, etc.).

horseatingweeds

5+ Year Member



 
Msg#: 3346944 posted 7:39 pm on May 23, 2007 (gmt 0)

Great physics, now your pulling me in the other direction. ;)

Let me explain my project a little better:

My first stage is converting what was a site promoting our breeding activities into a complete information site. This will be the core. I hope for it to contain everything you would ever want to know about the Doberman on an organized and friendly (accessible) interface with plenty of photos.

After this is complete I will optimize and promote until I hopefully break into the top Google 10 on a list of key phrases.

At this point I will have something valuable and will implement a discussion forum and several listing categories for breeders, trainers, groomers, and all that.

If you want to see what I have so far you can do a search for gentle doberman.

And yes, I am learning consistently and writing about something I like. I'm a big fan of the information revolution.

System
redhat


 
Msg#: 3346944 posted 2:49 pm on May 28, 2007 (gmt 0)

The following 2 messages were cut out to new thread by physics. New thread at: webmaster/3351817.htm [webmasterworld.com]
9:43 am on May 28, 2007 (MST -7)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved