What do you mean by PHP
How to use PHP
FAQ # 444
In this article we describe the first steps with PHP and give first application examples for the dynamic design of websites with PHP.
You can of course also create your Internet pages in a graphical HTML editor and then insert the PHP code in HTML mode (if available) or in a text editor. You don't save the file with the ending ".html" but ".php" or ".php4" so that the server recognizes straight away that a PHP script has to be executed here. Then upload the Internet page with the PHP script to our server like normal Internet pages via FTP.
Example: Hello World
A very simple example is writing a text, for example "Hello World" with PHP. The code for this looks like this:
My first PHP example:
<?php Print "Hello, World!"; ?>
Another simple example is the output of the current date with PHP. The code for this looks like this:
My second PHP example:
When the file is called, the current date is displayed for your viewer instead of the PHP script code:
If you do not have a permanent connection to the Internet, it is advisable to set up your own test environment on your computer to test more complex PHP scripts. To do this, you need to install a web server and PHP. You can find out how to do this in the section additional Information featured websites.
Special case home page
If you want to set up a PHP page as the start page, none must index.html or index.htm are located on the web space, as the server will search your web space according to different Index startup files searched in the following order: .html, .htm, .php
Was this text helpful to you?
- What is the most rewarding skill
- What is the scariest drug in the world
- The computer hardware deteriorates over time
- Is byjus better or khan academy
- What are some cool biochemical facts
- Who are the Juventus fans on Quora
- Which course should I choose to graduate?
- Can set goals to cure depression
- Is there a book that's harder than Irodow
- How many people buy social media products
- What are some immortal deities
- How do I get up from bed
- Offers Ola Cab service in Bihar
- How can I set up a crowdfunding project
- Why is inorganic chemistry an exception
- Is limestone harder than concrete
- What is PhoneGap
- Will modernity kill epic poetry Why
- How can i root Xiaomi Mi 5
- How is Erlang soft in real time
- What are the unique facts about Bhubaneswar
- How can I claim a TDS amount?
- Why nuclear energy is higher than chemical energy
- Why is drug addiction such a struggle