views:

79

answers:

5

I want to develop a site that will allow be to publish information to users, and give them and opportunity to subscribe to a mailing list so they can be updated each time I make a change to the site. *Add new information, etc.

I also would like for the users to be able to add comments about reviews posted, and give me suggestions...Things that will encourage user interaction

I understand that this is possible with php...

But I do not know php, and to learn and test it I apparently need a domain to begin with...etc. Is it possible that I use Xhtml/Html to get the same results?

-- I know I can use the <a href="mailto:[email protected]"; subject="Email from Site user">Mail</a>

but that would also leave my email open to spam...Any suggestions?

And I do apologize if this question has been posted before, I did some research and found no such thing. All helpful responses are appreciated.

+1  A: 

No, you will need some kind of server side scripting language to be able to interrogate a database, print out comments and send the generated HTML to the browser.

If you don't know how to use PHP, how about using an open source solution like WordPress, this is a bloging platform but offers all the things you listed.

ILMV
Thanks for the suggestion ILMV. I wanted to do my thing from "scratch" I suppose. I do know HTML and CSS and want to put that knowledge to use.I am not aware of the advantage of WordPress over having my own site domain.
ihaveitnow
You can install WordPress on your own domain :), it can be styles to your needs as well. Put it this way, if you want to build it yourself be prepared to learn PHP (or similar).
ILMV
Or similar? Would you mind naming the alternative/s to PHP?
ihaveitnow
Certainly, ASP.net is the main alternative, there are other such as ColdFusion, but to be fair PHP might be your easiest target if your new to the sport :-)
ILMV
+2  A: 

(X)HTML is the markup language that's interpreted by the browser, to display your web pages.

PHP is a language, used on the server, that can :

  • Generate that HTML markup
  • Act as a 'glue' with other systems, such as a database, for data-persitence.


(X)HTML by itself it not dynamic : it's only used to display data.

And PHP by itself doesn't display much information : it generates them.


So, basically, you'll need to use both (X)HTML and PHP :

  • PHP for everything thats' dynamic
    • like interaction with a database, a form, ...
  • HTML (possibly generated by the PHP code) to display the data.
Pascal MARTIN
Thanks for the response Pascal. Much appreciated and duly noted.
ihaveitnow
You're welcome :-) Have fun !
Pascal MARTIN
A: 

HTML is just a markup language used by the browser to format data to display to users.

Most hosting solutions provide form mailer scripts that just take an HTML form and email the fields to a specified email address which you can configure.

They also provide mailing list functionality.

So, maybe check for a (PHP) hosting solution that provide this functionality and you won't need to write any PHP until you require more complex, custom functionality.

Neal Donnan
Thanks fro the suggestion Neal.So just...Find a good quality host? And I should be set eh?
ihaveitnow
+2  A: 

XHTML and HTML are essentially the same thing, just xhtml is based on an xml standard (thats where the x comes from), therefore being a bit more stricter.

HTML/XHTML is generally used for structure of your webpage, where as PHP is a server based language, meaning it works behind the scenes.

You could use html, but it'd be hideously complex to make, so i'd say you'd be better of biting the bullet and making a start on your first php app:) Don't worry it's very easy to get your head around. You do not need a domain to get started with the development, simply install WAMP (for windows), or MAMP (if your apple freak like me), these programs act as self contained mini servers, very useful for development!

Then i'd suggest trying it all out using html for starters, just so you get used to the WAMP/MAMP sever, before heading over to http://devzone.zend.com/article/627 for a brilliant set of tutorials on PHP!

EDIT: Another poster mentioned wordpress, its a great platform too! But i always favour learning the basics so in the event of something going wrong, or not working the way you want it to, you'll know what to do, or at least have an idea. Therefore i'd stick with your own php solution as a starter, then progressing to wordpress, when you feel comfortable.

I hope this helps :)

Rob
Brilliant response Rob, +1 for suggestionsBut im on Linux, any suggestions there?and iv used Gedit to make a .php file...But it wont open in Firefox nor Chrome o.oIv added the code to the html, and nothing happens. In proper <? ?> tags
ihaveitnow
I found a Linux version to WAMP, its called LAMP. I will do more research on it. But thanks for your response.Ill take this as the answer.
ihaveitnow
Check out http://devzone.zend.com/article/627 for beginning PHP
Reuben Mallaby
no problem :) ooo yeah i forgot about LAMP sorry about that! If you want any help with setting it up give me a buzz, im not sure if u can do any messaging here, im pretty new to stack overflow! :(
Rob
I'd say it'd be more useful for others if we continued on stack, you have to have a php interpreter, running on your server for it to process php files, LAMP MAMP WAMP all come with a php interpreter.
Rob
Good suggestion, I have downloaded Apache, Php, My Sql prior to posting this topic.But im not sure I know how to use them. I go into Gedit and do the hello world code as seen on http://devzone.zend.com/node/view/id/625But when I try to open it into Firefox it downloads it...?Which is why I had asked about php alternatives. But since php IS the way to go...How do I resolve that issue?Thanks for the constant feedback Rob.
ihaveitnow
you've got to make sure the servers running, there should be documentation on the site to tell you how to do it. then you must browse to your folder, eg. on mine its http://localhost:8888/myfolder/you cant just open php files in the browser they must be executed.
Rob
+1  A: 

I would suggest using WordPress because:

  • It is easy to learn, the documentation is excellent
  • There are thousands of free plugins to add functionality to your site
  • There is a plugin, Contact Form 7, that will allow your users to send your email while doing a good job of curbing spam
  • There is a built in RSS feed to push out to your users notices when your site is updated
  • WordPress can be installed on shared hosting, virtual private hosts, and almost any machine with the LAMP stack
  • If you are new to creating websites, WordPress has free themes which are a good starting place

Finally, to answer your question, XHTML and PHP do different things. XHTML is like the idea of a picture. You can see it, it has shapes, outlines, sometimes words, etc. Where as PHP is like film where viewers can see something, but there is something in the background that is updating and moving.

Christopher Altman