分类目录归档:学习笔记

ASP中&H(h)中的小细节

不知大家有没遇到以下情况:

Response.Redirect(“test.asp?id=”&haID),此时报错:

Microsoft VBScript compilation error ‘800a0401’

Expected end of statement  (语句未结束)

如果换成hID,或这&与h之间放上空格,则不会报错,可纳闷?

asp programer知道,&H或&h表示十六进制,&0 则表示八进制。在十六进制中A(a)到F(f)代表代表10到15,这下清楚原因了。

php-5.2.1-win32-installer.msi安装问题

下载了php-5.2.1-win32-installer.msi这个安装包,一路全选,next,很顺利完成安装。

而后点上Start Apache in Console,居然弹出一大堆错误对话框提示!
如:没有找到OCI.dll,因此这个应用程序未能启动。重新安装应用程序可能会修复此问题。

还有ntwdblib.dll,libpq.dll,sqlite3.dll,aspell-15.dll,libcs.dll等等,一大推动态库没有安装

C:\Documents and Settings\ljlwill>php,查看如何下:
PHP Warning: PHP Startup:Unable to load dynamic library’C:\PHP\ext\php_mssql.
dll’ -找不到指定的模块。
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\PHP\ext\php_oci8.d
ll’ – 找不到指定的模块。
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\PHP\ext\php_pdo_ms
sql.dll’ – 找不到指定的模块。
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\PHP\ext\php_pdo_oc
i.dll’ – 找不到指定的模块。
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘E:\PHP\ext\php_pdo_oc
i8.dll’ – 找不到指定的模块。
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘E:\PHP\ext\php_pdo_pg
sql.dll’ – 找不到指定的模块。
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘E:\PHP\ext\php_pdo_sq
lite_external.dll’ – 找不到指定的模块。
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘E:\PHP\ext\php_pgsql.
dll’ – 找不到指定的模块。
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘E:\PHP\ext\php_pspell
.dll’ – 找不到指定的模块。
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘E:\PHP\ext\php_sybase
_ct.dll’ – 找不到指定的模块。
in Unknown on line 0
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
原来是没有装相应的数据库,安装包中把所有支持这些数据库的包都装了,于是重新安装,并在安装包的选择扩展时选择自己机子上安装的数据库,问题解决。

IIS6.0下CSS失效

今天在自己机上整合php在IIS的应用的时候,打开网页的时候,网页变形了–css失效。

于是,网上搜了相关原因,但都没找到合适的。没办法,进去服务器(已经配置好了)对比下,很明显,在“Home Directory”里,没勾上“Read”。于是勾上,问题居然解决。也纳闷,之前运行asp,也没点上,倒没此现象呀。

希望此偶遇,对下来碰上类似问题的朋友们有帮助。