2009年7月24日 星期五

PHP5.3.0==deprecated ^_^!

今天把内容管理系统升级,PHP升到5.3.0-windows-VC6版本,Apache升到2.2.11,Mysql升到5.1。安装过程很顺利,可是装好后,通过浏览器访问就一片混乱了,真是抓狂!

主要原因是5.3放弃了一些常用的函数:

ereg_replace() is deprecated
All ereg*-functions will be deprecated
split() is deprecated
All POSIX Regex function will be deprecated in PHP 5.3.
set_magic_quotes_runtime() is deprecated
mysql_escape_string() is deprecated
session_register(), session_unregister(), and session_is_registered() are now deprecated.
Use the $_SESSION superglobal array instead.

更多放弃和更新可以看这里:http://cvs.php.net/viewvc.cgi/php-src/UPGRADING?revision=PHP_5_3

标签: ,

Windows下快速安装Subversion的Apache服务器

PHP宣布使用Subversion作为新的版本控制系统。
相对于CVS而言,它主要有如下特点:
1.支持目录的版本化,复制、删除和改名操作。
2.仓库基于BerkleyDB数据库,具有更快的操作速度。
3.更加方便高效地存储任何文件,包括二进制和Unicode文件。
4.非常容易维护,和其它语言的互操作性很强。
也可以说Subversion是基于CVS的新一代版本控制系统。

Windows下快速安装Subversion的Apache服务器步骤如下:

下载Subversion 1.5.6
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
http://subversion.tigris.org/files/documents/15/45937/Setup-Subversion-1.5.6.msi


下载Tortoisesvn 1.6.3
http://tortoisesvn.net/downloads
http://downloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.6.3.16613-win32-svn-1.6.3.msi?download

下载Apache HTTP Server 2.2.11
http://httpd.apache.org/download.cgi

分别在服务器端安装好Subversion和在客户端安装Tortoisesvn,然后在服务器端编辑Apache配置文件:
httpd.conf

取消注释
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so

在Subversion的bin目录下复制mod_dav_svn.so和mod_authz_svn.so到Apache的modules目录,在模块配置后面增加
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

最后在文件末增加
《Location /svn》
DAV svn
#SVN仓库父目录
SVNParentPath c:/SVN/
#风格样式控制文件
SVNIndexXSLT "/SVN/svnindex.xsl"
#访问控制,需要在Apache的bin目录下,用htpasswd为指定用户生成密码。
#htpasswd -cm c:\SVN\svn-auth-file 用户名
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile c:\SVN\svn-auth-file
Require valid-user
《/Location》

启动Apache即可。


SVN简要操作

在客户端创建仓库:
打开资源管理器,c:/SVN/下添加目录zhaiduo,点击鼠标右键,在Tortoisesvn选项中点击Create Repository.
Import导入文件 推荐仓库布局/Trunk, /Branches, /Tags
checkout复制文件到在客户端本地
Commit提交修改文件
Updat更新客户端复制文件
Export导出干净文件

Tortoisesvn选项中编辑config文件,用于设置svn:keywords:Id.

标签: , ,

2009年7月16日 星期四

2009-7-16记号:三维相关


基于Direct3D 10和NVIDIA PhysX渲染的游戏:Underwater Wars



伊朗三维艺术家作品


PDF: CUDA C Programming Best Practices Guide

framework: CuPP is our newly developed C++ framework designed to ease integration of NVIDIAs GPGPU system CUDA into existing C++ applications.

PDF: Introduction to CausticRT




标签: ,

Powered by Blogger

订阅
帖子 [Atom]