Dilemma from Prokofiev: What is PHP in relation to HTML and CSS?
I would like to know what php is, and what a “php server” is. Can you do php in a program like HTML-kit? Thanks for the help.
This really is details What is PHP in relation to HTML and CSS? that you might should solve concerns without any help. Simply this will help to in many ways; which will create everything better. Dreaming details What is PHP in relation to HTML and CSS? may possibly be a remedy in the long run.
Answer by Firecube ♥ MJ
PHP can generate HTML content into the page from the PHP server before it even reaches the client (which is why it is called hypertext preprocessor). The PHP server is the computer/application that performs the PHP operations on the page. CSS can also be used for your style settings, but that’s completely separate from PHP.
Answer by h4cked!1
.php is viewed the same way as .html, but if all your pages are .php you can add php code into it later, like redirects or something that requires a web application
php is meant for dynamic pages that take information from somewhere and process it and use it on a page in a certain way
for example a forum, php takes info from a database and shows you the active topics, bla bla bla, with only one .php file instead of hundreds of .html files
Answer by Nafee
You have to go through the very basics. Go to: www.w3schools.com. You can learn a lot of things from there.
Answer by J C
A PHP server is a server or basically a web hosting service that supports the use of PHP. If they do not support it, it will not read the PHP.
I am not sure about whether or not you can do PHP in something like HTML Kit, but I highly doubt it; I know the high end web editors like DreamWeaver can, though.
Check this site out, it has a lot of turtorials on web design: http://www.w3schools.com/php/default.asp
Answer by Marshton
HTML and CSS are ways of designing a website. Thats how you build a website.
PHP has the ability to build, add, edit and display HTML pages in a way that a user can Login to a site, post things to a wall and do things like that.
That is a very simplified version of what PHP is, and it can do a lot more, and a lot less, depending on how you use it.
To view examples/ to get started, visit: http://www.w3schools.com/ or http://www.tizag.com/
Best of luck!
Answer by texxsmith
PHP = Pre HyperText Processing
This means :
a request for a web page hits a server, the server runs the code you tell it to then returns an html page (except it’s named with the .php extension).
This code could massive or none.
The hook is that you write a php page, and it’s not what the end user sees. what the end user sees is what the php page that you write tells the server to generate.
you don’t need any special software on the develpers machine to write php, but you do need a server that has php installed on it. don’t try this on a MS server. Yes, you can install php on a MS server but Microsoft hates all technologies besides there own so it’s problematic. Besides MS servers cost a fortune and have lots of problems…
Answer by DeepU
without html and css you cant know what is PHP
Answer by arbpen
HTML-Kit is fine for doing PHP. After all, all you are doing is writing the PHP code. The HTML is generated on the server before it gets to the client.
It is very easy to escape out of PHP into HTML. For example:
You can also use PHP to write CSS, for example:
<?php header("Content-type: text/css");
$ about = "#336699"; //bluish
$ news = "#669999"; //greenish
$ places = array("about","news");
$ color = array("#336699","#669999");
for($ c=0;$ c
border-bottom:3px solid ;
Since you are using HTML-Kit, I can tell that you are using a Windows box. It would be very simple for you to set up a test server using your computer. This is what I did, and it’s great for testing things before I FTP them up to the production server.
You have a few choices. If you do not already have IIS running, then you could install WAMP (Windows/Apache/MySQL/PHP) [http://www.wampserver.com/en/], which includes all at one go. Or, if you are using IIS (I am), you can download the PHP installer for Windows IIS [http://www.php.net/downloads.php] that will configure it for you.
While you’re at it, I would highly suggest getting yourself MySQL [http://dev.mysql.com/downloads/mysql/5.1.html] and installing that as well (it comes in WAMP). HeidiSQL [http://www.heidisql.com/] is a good MySQL client so you can test queries, build tables, etc., before putting it into code.
By the way, if you haven’t do so, get HTML-Kit Tools http://www.htmlkit.com/tools/], the next generation of HTML-Kit. I love it – if you’re going to program in a scripting language you will like it simply because it highlights opening the closing brackets, parentheses, etc. Great when you are trying to debug something.
Do know greater?
Add your ultimate answer for the comments!
Follow me on Twitter: @VintageBeefLP This is my Minecraft Multiplayer Let’s Play from the Mindcrack Server. In between getting pwned by monsters, I will be d…
Server Rack in December
Visual via Server Rack in December
This is my server rack on 24th of December 2007.
What is HTML and CSS PHP?