FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP?





kattymeowmeow
Hi!
I am a new user of HTML and Javascript and I'm just wondering...
What is the difference between PHP and HTML?
Is there any advantages to using PHP?
Is it hard to learn?
Where are some good sites I can find tutorials?

Thanks
Katty
Stubru Freak
PHP is something completely different, it isn't an alternative to HTML at all, it's a way to make your website interactive, a lot like Javascript, but server-side which means you can make forums, guestbooks, and more things you can't do with only HTML/Javascript.
martindecorte
Technically, I'd say that PHP is a programming language that produces HTML code as output.

Basically, your HTML output code produced by your PHP code is called dynamic, because the same PHP code can produce diffrent HTML codes, depending on the inputs.
Ducksteina
HTML / Javascript / CSS / Whatever is used to display content to the user. PHP is used to make that content dynamic.
Sebaci
First start to learn HTML, it's easy, then CSS (easy too), then php (not so easy). As Stubru Freak said, php is server side, so if you want to see results of your coding in php on your computer you must install www serwer on your computer (Apache, Krasnal)
Traveller
kattymeowmeow wrote:
What is the difference between PHP and HTML?
HTML is the language used to format web pages. PHP is a programming language, and is used to make websites DO things and to make web pages whose content can change. The content produced by PHP is HTML, and that is what is actually displayed.

kattymeowmeow wrote:
Is there any advantages to using PHP?

If you need to make a website that will change, especially if you plan to offer things such as calendars, shopping carts, etc., there are GREAT advantages:
  • PHP is a "server-side" language. Users never see your source code - only the HTML it produces, and your web server is probably more powerful than the user's computer. These are some advantages over client-side languages such as Java and Javascript.
  • PHP is free, and runs on all kinds of servers. ASP is available almost exclusively under Windows, which is NOT a very stable platform for servers.
  • Since PHP is free, it has developed a VERY large user base, through whom a LOT of high-quality web software is available - often for free, as well.
  • JSP and Perl have their uses, but PHP is usually easier to use (and probably more available than JSP, too).
  • PHP is in the same style as C or C++. For programmers who are already familiar with other, similar languages, PHP is very easy to pick up. One drawback is that it may not be the easiest language for a newbie to learn (there, the advantage may tilt to ASP's VBScript mode).
  • PHP's interaction with databases (especially MySQL) is usually faster and smoother than ASP, and designing a website based around a database can give you incredible power and flexibility (e.g. allowing a user to change the page's language).

kattymeowmeow wrote:
Is it hard to learn?
Not as easy as VBScript, perhaps, but not THAT difficult, especially if you have already done some programming in C, C++, or similar languages or have programmed in more than one type of programming language.

kattymeowmeow wrote:
Where are some good sites I can find tutorials?
Of course, the primary PHP site is http://www.php.net, but another site with excellent tutorials about PHP and how to integrate it with MySQL is http://www.php-mysql-tutorial.com.
yjwong
Quote:

Not as easy as VBScript, perhaps, but not THAT difficult, especially if you have already done some programming in C, C++, or similar languages or have programmed in more than one type of programming language.


In my opinion, PHP is still easier to learn because it is a "weak" language.
kiterober
As said before HTML and PHP are completely different with PHP being server side.

One useful and well used feature of PHP (and CGI) is forms, the info from the form that a user types in e.g

Name: Fred
E-mail: fred@fredworld.com
Comment: Nice site

It is then processed by the server side code (in this case PHP) and can be e-mailed to the webmaster. The PHP (or CGI) will format the data so that it is e-mailed to you in an easy to read format, otherwise it would be sent as an attachment in one long line of data that is much more work to decode if it's a long form
bnbrown
Basically the only similarity between php and htlm si that both refers to "hypertext". First off HTML is a client side language that means your code will first run on the user's browser. PHP is a server side language, hence it runs first on the server and interprets to the browser. HTML is a basic for web and layout. PHP is a huge advantage for almost all within web. But PHP is more a real programming language, so I woul'd not suggest you to start with it. http://php-mysql-tutorial.com is a great tutorial on php and mysql : ) for HTML I would say http://pageresource.com or http://htmlgoodies.com
Related topics
http://tuvanonline.com/library/index.php
PHP-Nuke platium?
PHP Write to line
Anyone good with PHP-NUKE?
PHP safety?
req: PHP to list files in directory, and link to them
php admin and mysql admin console
Mysql And PHP HELP PLZ
Great php editor
Script php about gallery
File upload with PHP, Build an upload database for your site
[php scripts ] phpweather&email
Including With PHP
help me upgrade php to 5.
php includes
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.