Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 What is php?
Index -> Programming, PHP -> PHP Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kythoon




PostPosted: 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
Sponsor
sponsor
Homer_simpson




PostPosted: 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 Very Happy
kythoon




PostPosted: Sat Jun 14, 2003 1:47 pm   Post subject: (No subject)

how is it different from html?
Homer_simpson




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: Sat Jun 14, 2003 6:41 pm   Post subject: (No subject)

ic now thanks
Sponsor
Sponsor
Sponsor
sponsor
Amailer




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: Sun Jun 22, 2003 7:31 pm   Post subject: (No subject)

you could, but its just extra. Really not needed Smile
Now things that might be needed sometimes [[ well... everything is needed at some point Smile ]] is like this
code:

<?
//A web site...
$location = "http://mysite.com";

//rest of the code :)
if($location == "http://mysite.com") {
header("Location: $location"); /* redirection, sends the user to the $location */
} else {
echo "$location was incorrect!";
}
?>
PaddyLong




PostPosted: 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




PostPosted: Sun Jun 22, 2003 11:09 pm   Post subject: (No subject)

Well, the only problem with php is that its only for the web Sad, 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




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 16 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: