![]() ![]() We use this line to exclude the parents directory, which are presented with dots in Apache server. if ($folder = '.' or $folder = '.' or $folder = 'assets') continue. Here are a few things that you might want to take note from the above PHP scripts:Ä¡. ' ' // folder iconÄ®cho '' // open listÄ®cho 'We will put our codes under the div with the. Open the index.php in code editor, and add a basic HTML5 structure as well as a few additional HTML5 tags, like so. Then, create a folder named assets to store files like the images and CSS that we will be using along with the PHP file, index.php. Getting Startedįirst letâs create a new PHP file named index.php right under the ~/Sites folder. If you are ready, letâs just get started. And this is what we are going to do in this tutorial. Iâm a bit picky when it comes to user interface of Applications, and the way how Apache server presents the folders intrigues me to customize it, make it look nicer. And if you have been following the series (see Part 1 and Part 2 here) and have created projects in ~/Sites, then access localhost:8888 in the Browser, you will find that they are displayed as shown in the following screenshot. This is the last part of our series: Install PHP, Apache, and MySQL in Mac without MAMP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |