what is php
Go to solution
Solved by Tornation,
I don't think this thread really answered anything so far. PHP is a server-side scripting language that can be embedded into html.
e.g.
<?php $number = rand(1, 10); ?> <!DOCTYPE html> <html> <head> <title>Test</title> </head> <body> <p><?php echo($number); ?></p> </body> </html>
This document will just display a random number between 1 and 10 when viewed. Unlike if you something like this in a javascript (client-side) the client cannot influence the result. This is a very basic example and there are many other things php can do like getting post data from users and accessing a database.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now