LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-19-2004, 05:02 AM   #1
Megamieuwsel
Member
 
Registered: Sep 2002
Location: Haarlem , the Netherlands
Distribution: VectorLinux SOHO 5.1
Posts: 470

Rep: Reputation: 35
Can PHP substitute HTML completely?


Ok , tried to search for it but the results kinda swamped me.

First off : I have NO experience with any kind of coding/scripting whatsoever.

With that statement in mind , please be so kind to answer the following question:
Can I build a webpage solely with PHP , or do I still need to learn HTML first?

Not that I mind learning additional scripting-languages , but it would speed up my productivity , if I could get my stuff done with one tool straight off the bat.

If what I hope is true : Does PHP have noticable plusses/cons compared to HTML?
 
Old 08-19-2004, 05:20 AM   #2
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
Look first thing is that, The Web browser only knows HTML, so a web page must be madeup of HTML TAGS. Yes there are many more tools to make HTML like FrontPage, DreamWiewer or many more, but when you drag a button on your page in FrontPage, It also do the same stuff (i.e It will write the HTML code to create the button itself). I didn't use PHP so i don't know that you can use HTML codes inside it or not, But if there is an option that you can do the stuff like html in php even then you have to write exactly same tags in php also.
But this doesn't mean that you can't make the HTML page without learning HTML TAGS so simple is that you can use any thing like FrontPage, or any of HTML designer which will give you a simple way to create page generate the HTML code itself, then you can simply embedd your PHP code with it.
 
Old 08-19-2004, 05:39 AM   #3
Megamieuwsel
Member
 
Registered: Sep 2002
Location: Haarlem , the Netherlands
Distribution: VectorLinux SOHO 5.1
Posts: 470

Original Poster
Rep: Reputation: 35
Quote:
Yes there are many more tools to make HTML like FrontPage, DreamWiewer or many more,
Err.....
No Microsoft-products on my machines , so those are "out of the question"
I didn't ask for WYSIWYG-stuff ; What I asked for was whether I could do the job with one single scripting-language.
I have no qualms about "getting my hands dirty" so to say.

I'll elaborate a little more:
I figured , from what I have read so far , that PHP does provide more functionality than HTML/XHTML and I was wondering , if I could suffice with just PHP-scripting.
 
Old 08-19-2004, 05:58 AM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
PHP allows you to print static HTML as well as dynamically create it, eg from form details or database results. It still ends up generating a page of pure HTML which is sent to the client. You still need to know HTML and be decent at it to be able to use the dynamic nature of the PHP generated parts of your page.
 
Old 08-19-2004, 06:01 AM   #5
Megamieuwsel
Member
 
Registered: Sep 2002
Location: Haarlem , the Netherlands
Distribution: VectorLinux SOHO 5.1
Posts: 470

Original Poster
Rep: Reputation: 35
OK , that settles it then : Gonna pick up (X)HTML-skills first.
*pouts*
 
Old 08-19-2004, 06:07 AM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Dont worry, HTML is very easy once you get past the basics, and messing with Javascript (client side programming) might help you before you try PHP (server side programming). Dont forget about CSS!
 
Old 08-20-2004, 06:04 AM   #7
demoncheese
LQ Newbie
 
Registered: Aug 2003
Location: South East England
Distribution: Suse 9.1, Mandrake 9.2 & 10, Fedora Core 2 & IPCop 1.3
Posts: 11

Rep: Reputation: 0
This site might prove useful as it has lots of info about what you are after.

http://www.w3schools.com/
 
  


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
html into php charnel Programming 7 08-30-2005 10:47 AM
PHP/html forum FedoraUsr Programming 2 08-18-2005 01:07 PM
html to php? help me please!!!!! trscookie Programming 4 01-24-2005 06:36 AM
.htaccess .html -> .php timmy01 Linux - General 2 09-07-2003 05:30 AM
Completely unrelated question: HTML->Tables->Columns Ctawp Linux - Software 6 08-07-2003 12:31 PM

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

All times are GMT -5. The time now is 12:11 PM.

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