Author |
Message |
kythoon
|
Posted: Sat Jun 14, 2003 11:54 am Post subject: What is php? |
|
|
I have seen it around alot but dont really know what it is |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Homer_simpson
|
Posted: Sat Jun 14, 2003 12:01 pm Post subject: (No subject) |
|
|
It's a very dynamic webpage programming language...you can even make games with php... and if u hadn't noticed this forum website is made with php as well |
|
|
|
|
|
kythoon
|
Posted: Sat Jun 14, 2003 1:47 pm Post subject: (No subject) |
|
|
how is it different from html? |
|
|
|
|
|
Homer_simpson
|
Posted: Sat Jun 14, 2003 2:29 pm Post subject: (No subject) |
|
|
lol... it's nothing like html... it has it's own syntax...
you can declare variables have loop or if statements , u can access databases and a hell lot more... |
|
|
|
|
|
octopi
|
Posted: Sat Jun 14, 2003 2:56 pm Post subject: (No subject) |
|
|
Html is static.
Php is dynamic.
They are very different.
Php can output html if you want.
code: | <?php
header("Content-type: text/html\n\n");
echo "<html><body>Php outputting html.</body></html>";
?> |
which would output this:
code: | <html><body>Php outputting html.</body></html> |
Php can make things like simple counters, login programs, and anything to shopping carts, or as homer said games. |
|
|
|
|
|
PaddyLong
|
Posted: Sat Jun 14, 2003 4:00 pm Post subject: (No subject) |
|
|
think of it this way....
in programming there are three main phases... input, processing, output
HTML can only do the input and output phases... PHP pretty much adds the processing stage to it |
|
|
|
|
|
Homer_simpson
|
Posted: Sat Jun 14, 2003 5:40 pm Post subject: (No subject) |
|
|
here :
http://www.vtc.com/php.htm?ppc
you can learn all the basics of php in less than 30 mins in these videos...
and after you know the basics... http://php.net is the place to go... =)
i know php pretty good so i'll help you if you need help with anything... |
|
|
|
|
|
kythoon
|
Posted: Sat Jun 14, 2003 6:41 pm Post subject: (No subject) |
|
|
ic now thanks |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Amailer
|
Posted: Sun Jun 22, 2003 2:59 pm Post subject: !?! |
|
|
If you are into makign sites and etc...PHP IN THE BEST LANGUAGE FOR IT!
Nothing else is better! |
|
|
|
|
|
Blade
|
Posted: Sun Jun 22, 2003 4:32 pm Post subject: (No subject) |
|
|
octopi wrote:
Php can output html if you want.
code: | <?php
header("Content-type: text/html\n\n");
echo "<html><body>Php outputting html.</body></html>";
?> |
it can be simpler than that, you dont really need the header line.. |
|
|
|
|
|
krishon
|
Posted: Sun Jun 22, 2003 7:15 pm Post subject: (No subject) |
|
|
well u could add html and javascript together to make it dynamic...couldn't u? |
|
|
|
|
|
Amailer
|
|
|
|
|
PaddyLong
|
Posted: Sun Jun 22, 2003 10:37 pm Post subject: (No subject) |
|
|
krishon wrote: well u could add html and javascript together to make it dynamic...couldn't u?
you might be referring to dHTML which is just javascript and CSS used together to make dynamic stuff happen in real time.
as far as making PHP dynamic... it's dynamic at the time the page is loaded... so like you could have some variable to determine whether a bit of HTML is used
a main thing you notice when viewing a PHP page is that if you view the source, you don't see any PHP code...this is because any PHP code is exectuded when the page is loaded and then the HTML displayed based on what the PHP code did.... hence why it is called hypertext preprocessor |
|
|
|
|
|
Amailer
|
Posted: Sun Jun 22, 2003 11:09 pm Post subject: (No subject) |
|
|
Well, the only problem with php is that its only for the web , BUT STILL INSTED of that, its the best one [[ i ever ]] used to make my web sites, i mean its amazing, and its so easy. |
|
|
|
|
|
octopi
|
Posted: Thu Jun 26, 2003 10:29 pm Post subject: (No subject) |
|
|
php is not only for the web.
I have it set up on my server so I can access it in something similar to a dos window.
Although, you are correct, it is AIM'ed mainly for web development usages. |
|
|
|
|
|
|