September 2024
Intermediate to advanced
743 pages
27h 48m
English
Once MAMP has been set up, you’re ready to go. However, before we turn to a concrete example, I first want to discuss the basic programming structure. For this purpose, you’ll need to create a file called test.php and open it in an editor of your choice. This file will be placed in the folder you specified earlier. As shown in Figure 15.1, for me, this folder is the Sites/localhost directory, which is located in my user folder. Within the test file, you can specify any HTML code you like.
You can then define PHP areas within the opening <?php and closing ?> tags, as shown in Listing 15.1. echo outputs “Hello World.” Figure 15.3 shows how the http://localhost:8888/test.php address was called in the ...
Read now
Unlock full access