Forumlar / Cotonti / General / PHP

How do i

GHengeveld
#15419 2009-08-03 06:51
A .php file is basically a .txt file (you can write it in notepad, dreamweaver or any other flat text editor), which usually starts with <?php and ends with ?>
You save the file with the .php extention (instead of .txt) and upload to your php-enabled webserver to run it. A php file can also contain HTML code (which goes outside of the php starting and ending tags).

Example:
<?php
$text = 'Hello world';
echo $text;
?>