phpcms 开发应用说明汇总

一、


http://www.phpip.com/html/phpcms_development/

 经常,我们会遇到有会php或者准备做网站改版的用户都会考虑到,如何才能保障自己定义的函数,在官方发布升级包后,还能够正常的使用。
phpcms为二次开发提供了强大的技术核心支持。

位于:\phpcms\libs\functions\extention.func.php

<?php


/**


 *  extention.func.php 用户自定义函数库


 *


 * @copyright (C) 2005-2010 PHPCMS


 * @license http://www.phpcms.cn/license/


 * @lastmodify 2010-10-27


 */


 


?>

是一个空的文件。用户可以放置自定的一些函数或者其他需要加载的变量都可以。
该文件是会在全站。每次调用的时候自动加载。

除了这个文件外,phpcms 还有另外一个目录:

\phpcms\libs\functions\autoload

开发者可以在这个文件中写入任意的php文件。phpcms在运行的过程中都会加载这里面的文件。
所以对于一些二次开发模块比较多的用户,可以选择将不同功能的函数,文件放置到不同的文件当中。


多站点服务器的配置方法:
目录apache\conf\extra\httpd-vosts
<virtualHost *:80>
   serverAdmin @
   DocumentRoot "盘符/网站目录下"
   ServerName a.com
  <directory "网站目录下">
       Options Indexes FollowSymLinks
       AllowOverrid Options FileInfo
      Order allow,deny
      Allow from all
     DirectoryIndex index.html index.html index.php
  </Directory>
     Alias  /phpmyadmi "c:/phpMyAdmin/"
    <Directory "c:/phpMyadmin">
       AllowOverride AuthConfig
      Order allow,deny
     Allow from all
    DirectoryIndex index.html index.html index.php
</Directory>
   ErrorLog "logs/a.com-error.log"
   CustomLog "logs/a.com-access.log" combined
</VirtualHost>

<virtualhost *:80>
 ServerAdmin @
  DocumentRoot 网站目录路径
  ServerName b.com
  <Directory "网站目录路径">
     Options Indexes FollowSymLiks
     AllowOverride Options FileInfo
    Order allow,deny
    Allow from all
    DirectoryIndex index.html index.htm index.php
</Directory>
   Alias /phpmyadmin "c:/phpmyadmin"
   <Directory "c:/phpmyadmin">
        AllowOverride AuthConfig
       Order allow,deny
       Allow from all
      DirectoryIndex index.html index.htm index.php
   </Directory>
  ErrorLog "logs/b.com-error.log"
  CustomLog "logs/b.log" combined
</VirtualHost>
  
</virtualhost>

   

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值