Writing the structure of a PHP scriptĮvery PHP script contains two special lines (or PHP tags) that indicate to PHP server that the text contained between the two tags must be parsed as PHP instructions. The URL for the web serve`s directory root in your local computer is 1. Because PHP scripts need to be parsed by the server, you absolutely must access them via the URL. The default location of the document root for these aplications is as follows: Normally, this means that the files should be in the serve`s directory root or a subfolder of the document root. ![]() Once you have installed XAMPP (WampServes or EasyPHP) aplication, you need to create your PHP files in a location where the web server can process them. You can get XAMPP from the page: Download XAMPP. They are free, but for beginners is better to install an all-in-one packages free aplication, like WampServer ( or XAMPP, that already has Apache, PHP, MySQL and phpMyAdmin included and configured. ![]() First, you must have installed a server, for example Apache and the PHP module. PHP is a programming language that needs a server to run it. Anyway, it's indicated and more efficiently to use a dedicated script editor like Notepad++ or Eclipse. PHP code is plain text and can be created in any text editor, such as Notepad on Windows or TextEdit on Mac OS X. However, even writing a complex PHP script is relatively simple, requiring only an regular text editor. ![]() A PHP script can be very simple or very complex.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |