Learning PHP to create a local site

Just started learning PHP, have no idea what, and even said "its own to build a website", that do not understand, anyway, still have to learn what a concept for the job in his own mind. Here it says "day sentence": Creating a local site by modifying the vhosts file phpstudy in.

 

Step One: Create the following: (/ phpstudy2016 / WWW C) one of their own folders, here I created a myphp folder, and write a index.php file with notepad ++ (content is simply an echo "Hello PHP in the root directory ") on the folder.

Step Two: Click phpstudy "Other Options Menu" -> "Open Configuration File" -> "vhosts-conf", and wrote the following words into it. The port number 8081 is the port number you set, if not set, write the default port 80, the path is the path to the following two files that you create folders and save.

 

Step Three: Click "Other Options Menu" -> "Open hosts", binding domain need to create, save.

Step four: Restart phpstudy service.

Step Five: browser access index file (localhost by visiting the new site domain: 8081 / myphp.com / index.php, if you do not change the default port number 80, visit the url link can omit the port number localhost / myphp. com / index.php), show the success that is created.

 

Reference link: http: //phpstudy.php.cn/wenda/381.html

 

Guess you like

Origin www.cnblogs.com/BASE64/p/11032566.html