搜索结果

JavaScript

JS实现禁止页面后退(用于订单结算页面)

756

最近写一个项目的订单功能时想到好多商城的订单页面是不允许后退的,经过一番折腾(度娘孤狗搜狗啥的,你懂得),终于找到个可行的,这现在网上的坑也是真不少,大多都不能用,要不就是驴唇不对马嘴;现在把能用的这个方法分享下,代码如下:<script>  &

Cache

PHP脚本运行Redis的前置操作和一些基本命令

1243

Chiliast整理于2017年3月,首次发表在爱代码博客 http://www.icodes.cc1.复制php_igbinary.dll,php_redis.dll文件到php目录下的ext(扩展)目录下 2.打开php.ini配置文件,搜索extension,在

Cache

laravel控制器加载视图时设置临时缓存

865

有时候,你可能会想从缓存中取出一个变量,但也想在将要取出的变量不存在时存入一个默认值,例如,你可能会想从缓存中取出所有用户,当找不到用户时,从数据库中将这些用户取出并放入缓存中,你可以使用 Cache::remember 方法达到目的:$value =&nbs

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 81: file_put_contents(): Only 0 of 274 bytes written, possibly out of free disk space

  1. in Filesystem.php line 81
  2. at HandleExceptions->handleError('2', 'file_put_contents(): Only 0 of 274 bytes written, possibly out of free disk space', '/data/home/qxu1649280102/htdocs/local/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', '81', array('path' => '/data/home/qxu1649280102/htdocs/local/storage/framework/sessions/bfc4988646d24f45e767acaf791639a11a5fe32c', 'contents' => 'a:4:{s:6:"_token";s:40:"4Mkx20xuo1zSzYRmkCcj4MHedxJ7d20wJ5xeJRgM";s:9:"_previous";a:1:{s:3:"url";s:37:"http://icodes.cc/findbytag/1490544019";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542822864;s:1:"c";i:1542822864;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 'lock' => true))
  3. at file_put_contents('/data/home/qxu1649280102/htdocs/local/storage/framework/sessions/bfc4988646d24f45e767acaf791639a11a5fe32c', 'a:4:{s:6:"_token";s:40:"4Mkx20xuo1zSzYRmkCcj4MHedxJ7d20wJ5xeJRgM";s:9:"_previous";a:1:{s:3:"url";s:37:"http://icodes.cc/findbytag/1490544019";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542822864;s:1:"c";i:1542822864;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', '2') in Filesystem.php line 81
  4. at Filesystem->put('/data/home/qxu1649280102/htdocs/local/storage/framework/sessions/bfc4988646d24f45e767acaf791639a11a5fe32c', 'a:4:{s:6:"_token";s:40:"4Mkx20xuo1zSzYRmkCcj4MHedxJ7d20wJ5xeJRgM";s:9:"_previous";a:1:{s:3:"url";s:37:"http://icodes.cc/findbytag/1490544019";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542822864;s:1:"c";i:1542822864;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', true) in FileSessionHandler.php line 83
  5. at FileSessionHandler->write('bfc4988646d24f45e767acaf791639a11a5fe32c', 'a:4:{s:6:"_token";s:40:"4Mkx20xuo1zSzYRmkCcj4MHedxJ7d20wJ5xeJRgM";s:9:"_previous";a:1:{s:3:"url";s:37:"http://icodes.cc/findbytag/1490544019";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542822864;s:1:"c";i:1542822864;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}') in Store.php line 262
  6. at Store->save() in StartSession.php line 88
  7. at StartSession->terminate(object(Request), object(Response)) in Kernel.php line 145
  8. at Kernel->terminate(object(Request), object(Response)) in index.php line 60