Jump to content

Need to know html to learn php?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
11 replies to this topic

#1
cook777

cook777

    Newbie

  • Members
  • PipPip
  • 13 posts
Do I need to know html to learn php? If so what is it that I need to know?

I looked at one site and it says you need some basic but it does not say what.

I know some C (taking a class in it know.) And some C++ (it was just a class to introduce programming concepts.)

#2
killcode

killcode

    Learning Programmer

  • Members
  • PipPipPip
  • 96 posts
No, but i would recommended it, html isnt that hard realy might aswell learn it, but its up to you.
Posted Image

#3
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
to program PHP, you don't need any HTML knowledge, but, then you can't have your PHP result in web pages. php is mainly a language used for generating html for web pages.

although, it could be used for other purposes. but it's not usual.

I prefer that you start learning HTML. a great site is W3Schools Online Web Tutorials.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#4
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
Not at all!

PHP can be used for other things like console programming and GUI programming that don't require knowing HTML.

If you want to use PHP to make web pages you need to know HTML since PHP outputs HTML.

#5
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Not many people use PHP in CLI mode nor do they generally use it fro GUI applications using PHP-GTK. I agree with what Orjan stated. Also, consider what the "H" means in PHP. :)

#6
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
Correct,

but it is possible to use PHP in CLI mode. So you don't need to know HTML to use PHP. Though it wouldn't hurt to know HTML.

So go learn some HTML. :)

#7
killcode

killcode

    Learning Programmer

  • Members
  • PipPipPip
  • 96 posts
Yeah, if your goin to use php-gtk, depending on what you want to use it for realy...its good for using php sockets
Posted Image

#8
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
Chili, did you miss my passus that it can be used for other things, but it's unusual?
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#9
cook777

cook777

    Newbie

  • Members
  • PipPip
  • 13 posts
Ok I think I will then. :)

Thanks to everyone that answered.

#10
killcode

killcode

    Learning Programmer

  • Members
  • PipPipPip
  • 96 posts
Np :D, btw, the best thing to do is to download free web templates and look at the code to see how they work, thats what i did.
Posted Image

#11
cook777

cook777

    Newbie

  • Members
  • PipPip
  • 13 posts

killcode said:

Np :D, btw, the best thing to do is to download free web templates and look at the code to see how they work, thats what i did.

Free web templates?

#12
keaspectro

keaspectro

    Newbie

  • Members
  • Pip
  • 3 posts

cook777 said:

Do I need to know html to learn php? If so what is it that I need to know?

I looked at one site and it says you need some basic but it does not say what.

I know some C (taking a class in it know.) And some C++ (it was just a class to introduce programming concepts.)

to program PHP, you don't need any HTML knowledge...