php steps to build a website
php framework website building tutorial
First go to the official website to download the thinkphp3.2.3 version of the framework, or you can git the latest 3.2.3 function
Set the bound module in the index.php entry file define('BIND_MODULE','Project');, the bound module can be defined by yourself, set the application path define('APP_PATH','./myweb/');
##Open the convention.php convention file under ThinkPHP\Conf to set the database connection and other default framework related settings, including database settings, data cache settings, log settings, default settings, template engine settings, layout settings, URL Settings, router settings, etc. Add a static page of index.html under the folder myweb\Project\View\Index as the output template<div class="showtext tit"> <ul> <li>用户名</li> <li>密码</li> <li>姓名</li> <li>手机号</li> <li>email</li> </ul> </div> <div class="showtext"> <ul> <foreach name="list" item="item" key="ix" > <li>{$item["user_name"]}</li> <li>{$item["password"]}</li> <li>{$item["real_name"]}</li> <li>{$item["phone_num"]}</li> <li>{$item["email"]}</li> </foreach> </ul> </div>
PHP中文网!
The above is the detailed content of Steps to build a website in php. For more information, please follow other related articles on the PHP Chinese website!