1,首先,让apache服务器支持rewrite 可以在apache配置文件中定义rewrite规则,是全局的,无论哪个应用都实用//httpd.configListen 80RewriteEngine on ---将rewrite开启LoadModule rewrite_module modul....
分类:
Web程序 时间:
2015-09-18 13:39:37
阅读次数:
228
自己组装的apache,php,mysqlphpinfo显示OpenSSL support disabled (install ext/openssl)判断为权限问题,所以修改如下。1将php安装目录下ext下的php_openssl.dll、libeay32.dll、ssleay32.dll 、....
分类:
其他好文 时间:
2015-09-17 16:57:17
阅读次数:
581
经过摸索,终于能在laravel 5.1中应用验证码了。因为英语渣五水平,所以几乎没搜索到什么有用的,于是考虑在github上搜索验证码包!提示: github上的package中往往会有使用说明,照着上面的实现,一般都能做出来。我使用的是mews captchagit 上的地址:https://g...
分类:
其他好文 时间:
2015-09-16 18:06:11
阅读次数:
175
客户端 ? <form method="POST" action="" enctype="muitipart/form-data"> ? ? ? <input type="file" name="myfile" /> ? ? ? <input type="submit" name="submit" value="Submit" /> ? </form> ? 提交到...
分类:
Web程序 时间:
2015-09-15 11:13:19
阅读次数:
260
建库,建modelphp artisan make:migration create_tags_table --create=tagsphp artisan make:model Tag加字段increments('id'); $table->string('name'); ...
分类:
其他好文 时间:
2015-09-15 00:12:51
阅读次数:
193
简单的例子,更高级的插件应用在components目录控制器放入,flash是一次性的,put不是\Session::flash('flash_msg','Your article has been created!');视图显示 @if (Session::has('flash_ms...
分类:
其他好文 时间:
2015-09-14 21:05:27
阅读次数:
161
EventServiceProvidernamespace App\Providers;class EventServiceProvider extends ServiceProvider{ protected $listen = [ 'App\Events\UserHasReg...
分类:
其他好文 时间:
2015-09-14 13:53:31
阅读次数:
167
namespace App\Providers;class RouteServiceProvider extends ServiceProvider{ public function boot(Router $router) { parent::boot($router);...
分类:
其他好文 时间:
2015-09-14 01:54:26
阅读次数:
155
修改数据库articles结构,添加到user表的外键,migrate:refresh public function up() { Schema::create('articles', function (Blueprint $table) { $t...
分类:
其他好文 时间:
2015-09-14 00:34:11
阅读次数:
173
package controllerimport urllib.request,os; pf = 'PackageControl.sublime-package'; ipp = sublime.installed_packages_path();urllib.request.install_open...
分类:
其他好文 时间:
2015-09-13 23:02:38
阅读次数:
171