4/18/2021 0 Comments How To Use Mamp Mac
HOW DO I VIEW PHP FILES USING MAMP Once you have placed your PHP files inside your htdocs folder within the MAMP folder in Applications, it is just a case of opening your preferred browser to view the files.
Use Mamp Install A ServerIf you want to do any development work in PHP and MySQL then you will need to install a server environment which includes Apache and MySQL.The most popular way of doing this is to use a stack such as MAMP.Use Mamp Free Download AlthoughIt is a free download although the download package does contain 2 versions - one is the free version and the other is MAMP Pro.However, you can use the free version without any issues and there is no time limit and no restrictions. The Pro version is not required if you simply wish to run PHP scripts and create MySQL databases. STEP 2: Install MAMP You may wish to consider s computer restart before installing (see my notes at the end of this article). Once MAMP has downloaded, click the download package to start the install process. You will be presented with the standard install process screens. ![]() At this point you will be asked if you agree with the terms of the agreement. Note that although MAMP PRO will be installed you will not be charged for it and can delete it if you wish. The MAMP installation is about 1.5GB on disk. You will be asked if you wish to keep the installer or move it to the trash. I, personally, move it to the trash to keep my Mac clutter free. If you wish to do the same then click on the Move to Bin button. Click on the MAMP folder and then the MAMP application icon to start MAMP. You may notice that the Apache Server and MySQL Server indicators are off. Use Mamp Code And MySQLHOW DO I START USING MAMP The whole reason for installing MAMP was so that you can use PHP code and MySQL. The first thing you should do is start the Apache Server and MySQL Server if you have not already done so. When you create PHP files these need to be parsed before being served as HTML pages via Apache. This means that you will need to ensure that your PHP files are stored in the root folder of MAMP, otherwise you will find that your files will just be served as text files when you view them in your browser. There are ways to change the default location of the root folder in MAMP but this can be a little complex for a beginner and is probably best avoided at this stage. ![]() This will ensure that your PHP code is parsed before being served.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |