<?php /* [Discuz!] (C)2001-2007 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: common.inc.php 10344 2007-08-27 02:36:30Z monkey $ */ /* 说明: Discuz!核心文件阅读: */ error_reporting(0); //对脚本的错误回显作了屏蔽,参数“0”的意思量关闭所有级别的错误报告. set_magi
1.在Common目录下创建Common.php(系统会自动加载Common.php) 代码: function say(){ echo '; } 在IndecAction.php输出 public function show(){ print_r(say()); } 如果在common.php建立两个function会出错 ,如: function say(){ echo '; } function s(){ echo '; } 2.在Common目录下只建立一个fun.php,如何加载 a)
首先通过NuGet管理安装ICSharpCode.SharpZipLib.dll 以下是压缩的通用方法: using System; using System.IO; using System.Web; using System.Linq; using System.Collections.Generic; using ICSharpCode.SharpZipLib.Zip; namespace Common { /// <summary> /// 压缩文件帮助类 /// </summa