PHP
文章平均质量分 64
totogogo
@CityU of HK
展开
-
php install guide (old version)
Assume the php zip file is extracted to E:/develop/php/php5.2.6 1. 进入 php 的安装目录,将 php.ini-dist 或 php.ini-recommended 复制一份,命名为 php.ini。然后打开 php.ini 1)找到:;extension=php_mysql.dll将前面的;号去掉原创 2008-11-12 14:44:00 · 664 阅读 · 0 评论 -
OpenCart笔记2 (Theme and Module Development)
<br />Themes<br /> <br />About OpenCart Themes OpenCart uses MVC architecture. This means that the "V" or "view" is kept separate from the main code. The "view" is made up of the *.tpl files and are always found in: catalog/view/theme/YOUR_原创 2010-09-25 15:50:00 · 2416 阅读 · 0 评论 -
OpenCart笔记1
<br />requirement: <br />Apache, PHP 5, Mysql<br /><br />Open source shopping carts Opencart vs Prestashop vs Magento:<br />http://www.iecsp.com/opencart-vs-prestashop-vs-magento-589<br /><br />Installation:<br />http://www.opencart.com/index.php?route原创 2010-09-25 15:42:00 · 1582 阅读 · 0 评论 -
php sql query NULL field
<br />通过php sql query获取null field,则可以通过"isset()"来判断是否为null原创 2010-11-26 16:42:00 · 755 阅读 · 0 评论 -
Mahara安装
<br />安装前,必须有<br /> * Linux (window and mac不保证)<br /> * PHP - 5.2.0 or greater.<br /> * PostgreSQL 8.1+, or MySQL 5.0.25+ with I原创 2011-02-11 16:10:00 · 1605 阅读 · 0 评论 -
html calendar (php)
http://www.gerd-tentler.de/tools/phpcalendar/原创 2011-08-15 15:19:52 · 605 阅读 · 0 评论 -
phplist 安装, 配置, 测试
安装phplist的前期准备:* apache http server 2.2 with openssl (一定要使用带openssl的,否则如果用gmail来发phplist 邮件时会有 SMTP Error: Could not connect to SMTP host.)参考文章:http://blog.csdn.net/cheng_tian/article/details/58原创 2011-05-31 11:32:00 · 7207 阅读 · 3 评论 -
PHP安装步骤(以apache 2.2 + php5.3为例)
1. Download Apache for windows MSIfile, and run itBydefault, port is 80, root dir is %apache_dir%/htdocs. You can update thesettings in conf/httpd.conf file2. If Apache Service can't be insta原创 2010-01-04 11:42:00 · 4239 阅读 · 1 评论 -
web site development security
web site security包含以下几个方面:* XSSCross-site scripting (XSS) is a type of web application security risk that enables attackers to inject client-side script into Web pages.solutioncontent filter原创 2011-10-26 15:46:15 · 3346 阅读 · 0 评论 -
用程序发plain text email的换行问题
用程序来发plain text email,部分换行符在outlook中显示时会被转成空格,原因是:http://stackoverflow.com/questions/3931409/mailmessage-sent-string-as-body-without-newline-in-outlookhttp://support.microsoft.com/kb/287816解转载 2012-02-28 23:29:38 · 3713 阅读 · 0 评论 -
php mail发送email时subject为乱码
即使在header里设置了utf8都还是乱码,解决办法是: (ref link: http://www.macsoho.net/blog/?p=143)$subject = "確認郵件";$subject = "=?UTF-8?B?" . base64_encode($subject) . "?=";转载 2012-06-01 12:02:10 · 2582 阅读 · 0 评论 -
最完整的htaccess文件用法
http://www.cnmiss.cn/?p=199转载 2012-07-10 23:42:00 · 640 阅读 · 0 评论 -
php mvc framework: codeigniter笔记
codeigniter中文user guide: http://codeigniter.org.cn/user_guide/英文user guide: 下载解压后把整个目录(假设目录名为cidemo)放到web site里(假设放入root目录下)即可。check if it works at http://localhost/cidemo/index.php原创 2012-07-11 00:43:16 · 1568 阅读 · 0 评论 -
PHP类的精缩归纳
<br />http://blog.csdn.net/zz198811/archive/2010/03/03/5342456.aspx转载 2010-09-17 12:51:00 · 581 阅读 · 0 评论 -
Moodle笔记
Install GuideRequirements: Apache + PHP + MySQL1) Download "moodle standard package" zip file2) extract it and copy the whole moodle folder to Apache_Web_Root folder3) create a database named "moodle" in mysql4) create a data directory named "moodl原创 2010-06-21 12:26:00 · 974 阅读 · 0 评论 -
Use Eclipse + PDT + Zend Debugger to develop PHP (old version)
This is old version article. Pls refer to new article: http://blog.csdn.net/totogogo/archive/2010/01/06/5144987.aspx Install1. Install apache and php 2. Download eclipse + PDT原创 2008-11-14 15:44:00 · 1816 阅读 · 0 评论 -
正则表达式
正则表达式30分钟入门教程http://manual.phpv.net/regular_expression.html PHP 中的正则表达式http://www.phpv.net/html/1590.html转载 2010-03-15 10:51:00 · 536 阅读 · 0 评论 -
Zend PDT Eclipse + Zend Server Communication Edition(CE)
Normal 0 false false false MicrosoftInternetExplorer4 本来是想用Zend PDTEclipse + PHP5.3 + Apache2.2作为开发环境的,可是:1.原创 2010-01-06 18:18:00 · 2454 阅读 · 1 评论 -
php Mod rewrite test
In the directory where you plan to install Elgg, do the following: Create the file .htaccess and add these two linesRewriteEngine on RewriteRule ^testing.php$ modrewrite.phpThis tell原创 2010-04-09 16:03:00 · 670 阅读 · 0 评论 -
Moodle开发笔记1-基础知识
There are roughly 200 related tables in Moodle database. “mdl_” is prefix of each table name.Moodle data Moodle data is the file storage location foruser-uploaded content, Moodle data also stores the session data for userslogged into the system, if fil原创 2010-07-16 11:56:00 · 8584 阅读 · 2 评论 -
Moodle开发笔记5-Course Format开发
<br />Course format是用来定义coursepage的布局和显示。Moodle提供了6个standard course formats:<br />l lams<br />l scorm<br />l social<br />l topics<br />l weeks<br />l weekscss<br />后面3个最常用,These display a course i原创 2010-07-16 12:16:00 · 2120 阅读 · 0 评论 -
Moodle开发笔记3-Filter开发
Moodle filters是对修改来自database的content进行过滤修改后再输出显示。一个例子是moodle自带的multimedia filter,它能够detect references to video and audio files,然后replace them with a"mini-player" embedded in the content。Filter的工作原理Moodle里所有要输出到screen的text都要经过format_textfunction的处理,该函数会原创 2010-07-16 12:04:00 · 1945 阅读 · 0 评论 -
Moodle开发笔记6-Database操作
Moodle db table的规则:· the first field is aninteger field called idas primary key· table name can be nolonger than 28 characters· Field names can be nolonger than 30 characters· table character set(collation) sho原创 2010-07-16 12:18:00 · 3513 阅读 · 0 评论 -
Moodle开发笔记2-Block开发
Block是以一个长方形区域出现在moodlesite的page的左列或右列。Block是最简单、也是最常用的moodle plugin。下面讲解如何开发一个hello world moodle block “helloworld”1. create “helloworld” folder (目录名来自你的modulename) in ”moodle/blocks” folder2. 在”helloworld”目录下创建blockpage “block_helloworld.php” (命名格式原创 2010-07-16 12:02:00 · 4985 阅读 · 1 评论 -
Moodle开发笔记4-Theme开发
通过Theme,你可以修改整个moodle site的外观和风格。一个Theme最起码包含下列东东:l config.php 它设置了theme要用到的css file,以及其他style optionl styles.php 它是standard的,不用动它。l header.html 它是所有moodlepage的开头部分。它实际是一个php filel footer.ht原创 2010-07-16 12:07:00 · 3748 阅读 · 0 评论 -
Pear in PHP
How to install Pear in php5http://www.cnblogs.com/lovelovelt/archive/2010/02/08/1665609.htmlHow to check if PEAR workshttp://pear.php.net/manual/en/installation.checking.php原创 2010-06-18 16:57:00 · 1202 阅读 · 0 评论 -
PHP mail
<br />php本身带有mail function,但对于带验证的smtp好像不可行。因此有2个方案<br /><br />方案1:用pear的mail package<br />1) install pear "mail" package<br />2) send email php example<br /><br /><?php<br />require_once "Mail.php";<br /><br />$from = "Tomson Xu <xxxx@gmail.co原创 2010-06-19 15:42:00 · 1248 阅读 · 0 评论 -
主流PHP框架比较
http://hi.baidu.com/abcfxr/item/17d4131fb4fa32f864eabf53转载 2012-07-10 19:13:44 · 741 阅读 · 0 评论