首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看PHP
<?php

$folder1 = "C:/Users/Administrator/Documents/Visual Studio 2015/Projects/vb-china/vb-china/";
$folder2 = "Z:/vb-china/";

$subdirs = ['Content','Scripts','Views','Areas/Admin/Views'];


# 只需要设置上面的3项,下面的就不用设置了


recursiveDelete($folder2);  //每次开始前先清空从文件夹,此行可酌情屏蔽掉
......................
阅读全部 | 静夜思 贴于 2016年11月16日 15:34     hide bbsi
<?php

$folder1 = "C:/Users/Administrator/Documents/Visual Studio 2015/Projects/vb-china/vb-china/";
$folder2 = "Z:/vb-china/";

$subdirs = ['Content','Scripts','Views'];


# 只需要设置上面的3项,下面的就不用设置了

$files_dict_seri = __DIR__.'/files_dict.seri';

......................
阅读全部 | 静夜思 贴于 2016年11月16日 07:16     hide bbsi
<?php
include "include/conn.php";
    $pagesize = 4;  
$sql = "select * from tb_shop";
$result = MySQL_query($sql);

$count = MySQL_num_rows($result);  

if($count % $pagesize ==! 0)
{
$pagecount = (int)($count / $pagesize);  
}else
......................
阅读全部 | 阿兮 贴于 2016年9月27日 15:44     hide bbsi
1.KuaidiAPI.php
<?php
/**
 * Created by http://www.kuaidi.com
 * User: kuaidi.com PHP team
 * Date: 2016-03-02
 * 物流信息查询接口SDK
 * QQ: 2885643506
 * Version 1.0
 */

class KuaidiAPI{
......................
阅读全部 | 满天星辰雨 贴于 2016年8月12日 10:12     hide bbsi
<?php

/**
 * 
 * 接口测试
 * 
 * 以下代码只是为了方便开发者测试而提供的样例代码,开发者可以根据自己的业务需要,按照技术文档编写,并非一定要使用该代码。
 * 该代码仅供学习和研究信信客接口使用,只是提供一个参考。
 * 
 * @author chenfan
 * @version 1.0, 2016/06/13
 *
......................
阅读全部 | chx895629038 贴于 2016年7月5日 14:06     hide bbsi
//新建车间信息
$app->post('/saveWorkshop',function() use($app){
$rs=\model\Routing::saveWorkshop();
if($rs==1){
$app->flash('success','保存成功');
}else{
$app->flash('error',$rs);
}
$app->redirect('listWorkshop');//跳转到当前url
});
阅读全部 | icetong 贴于 2015年5月26日 18:45     hide bbsi
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>动漫style</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="<?php echo site_url('assets/front/http://www.tonytheme.com/buyshop-html/favicon.png');?>">
    <link href="<?php echo site_url('assets/front/css/reset.css');?>" rel="stylesheet">
    <link href="<?php echo site_url('assets/front/css/bootstrap.css');?>" rel="stylesheet">
......................
阅读全部 | 刘笑笑 贴于 2015年4月21日 22:45     hide bbsi
<?php

function gbk_to_utf8($str){
return mb_convert_encoding($str, 'utf-8', 'gbk');
}

function utf8_to_gbk($str){
return mb_convert_encoding($str, 'gbk', 'utf-8');
}
阅读全部 | 静夜思 贴于 2014年8月16日 10:50     hide bbsi
<?php

function walk($pattern){
$files = glob($pattern);
foreach(array_reverse(glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT)) as $dir){
$files = array_merge(walk($dir.'/'.basename($pattern)), $files);
}
return $files;
}

print_r(walk("*.*"));
阅读全部 | 静夜思 贴于 2014年8月11日 11:47     hide bbsi
<?php

function __start_session(){
if(!defined('SESSION_START')){
define('SESSION_START', true);
session_set_cookie_params(86400*30);
session_start();
}
}
function set_session($key, $value, $maxage=2400){
__start_session();
$_SESSION[$key] = $value;
......................
阅读全部 | 静夜思 贴于 2014年8月7日 16:55     hide bbsi
上一页 1 2 3 4 下一页