欢迎各位兄弟 发布技术文章
这里的技术是共享的
PHP文件名:dome.php
<?php
$string = 1;
ob_start();
@readfile("templets/list.html");
$text = ob_get_flush();
$myfile = fopen("list.html","w");
$text = str_replace ("{counent}",$string,$text);
fwrite($myfile,$text);
ob_clean();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
<table width="500" border="0" cellpadding="5" cellspacing="1" align="center" bgcolor="#add3ef">
<tr bgcolor="#eff3ff">
<td>用户:{counent_user} 标题:{counent_title} 发布时间:{counent_lastdate}</td>
</tr>
<tr bgcolor="#fff">
<td>内容:{counent_content}</td>
</tr>
</table>
</form>
</html>
Laravel 5 框架入门(一)
Laravel5中文文档:1.http://laravel-china.org/docs/5.02.http://www.golaravel.com/laravel/docs/5.0/默认条件本文默认你已经有配置完善的PHP+MySQL运行环境,懂得PHP网站运行
Laravel 5框架学习之用户认证
Laravel出厂已经带有了用户认证系统,我们来看一下routes.php,如果删除了,添加上:Route::controllers(['auth'='AuthAuthController','password'='AuthPasswordController']);
PHP中把数据库查询结果输出为json格式简单实例
include/conn.php为数据库链接文件,不会的网上搜索phpinclude'./include/conn.php';//数据库链接文件$sql_notice=mysql_query('SELECT*FROMgg_noticewhereenable="1"limit0,10');$notice=my