# wget http://pecl.php.net/get/zip-1.18.2.tgz
# tar -zxvf zip-1.18.2.tgz
# cd zip-1.18.2
# /usr/bin/phpize
# ./configure --with-php-config=/usr/bin/php-config
# make
# make install
# make test
# vim /etc/php.ini //zip安装成功后在php.ini中加入一行:
extension=zip.so
-have your system administrator add LIBDIR to `/etc/ld.so.conf’ …… Warning: PHP Startup: Unable to load dynamic library ‘zip.so’ (tried: /root/zip-1.18.2/modules/zip.so (libzip.so.5: cannot open shared object file: No such file or directory), /root/zip-1.18.2/modules/zip.so.so (/root/zip-1.18.2/modules/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
make test 中的错误提示
Bug #72434: ZipArchive class Use After Free Vulnerability in PHP’s GC algorithm and unserialize [tests/bug72434.phpt]
[DTF] Data Transfer start
[DTF] Getting tables
[DTF] Getting views
[DTF] Getting functions
[DTF] Getting events
[ERR] 1577 - Cannot proceed because system tables used by Event Scheduler were found damaged at server start
[DTF] Finished unsuccessfully
# A comment, this is so you can read your program later.
# Anything after the # is ignored by python.
print("I could have code like this.") # and the comment after is ignored
# You can also use a comment to "disable" or comment out code:
# print("This won't run.")
print("This will run.")
print()
print("Study Drills(巩固练习):")
# 弄清楚#字符的作用,而且记住它的英文名字octothorpe / pound character
print("1、octothorpe单词不好记啊,分开读oc tothor pe,不明白记的意义,就\
当记英文单词了。\n2、从后往前逐行反向检查应该是有用的吧,目前还体会不到,也\
当学英语了。\n3、确实会发现一些错误,因为注释掉了所以没有报错。\n4、朗读代\
码也当学英语吧,越来越喜欢这个课程了,英语也一并学习了,一箭多雕。")
print("Hello World!")
#print("Hello Again")
print("I like typing this.")
print("This is fun.")
print('Yay! Printing.')
print("I'd much rather you 'not'.")
print('I "said" do not touch this.\n')
print("巩固练习:")
# 巩固练习1,让你的脚本再打印一行。
print("1、第7行.后加一个换行符或者第8行加“print()”即可多打印一个空行。")
# 巩固练习2,让你的脚本只打印其中某一行。
print("2、难道用“#”把其他行注释掉?肯定不是。“如果做不出来可以暂时跳过”")
# 巩固练习3,在一行的起始位置放置一个"#"字符。它的作用是什么,自己研究一下。
print("3、很显然是“注释”掉此行的作用。")
print("\n学习小结:")
print("1、5-7行说明单引号与双引号好像并没有区别,成对使用即可。\n2、不需\
要每行后加换行符,自动换行。\n3、巩固练习2书中翻译应该是错误的,不是其中\
一行而是用一行打印出来,就是不要让它自动换行。\n")
print("Hello World!", end = ' ')
print("Hello Again", end = ' ')
print("I like typing this.", end = ' ')
print("This is fun.", end = ' ')
print("Yay! Printing.", end = ' ')
print("I'd much rather you 'not'.", end = ' ')
print("I 'said' do not touch this.", end = ' ')
2、Python安装完成提示“setup was successful”页面有一个提示“ Disable path length limit…… Changes your machine configuration to allow programs including Python to bypass the 260 character “MAX_PATH” limitation ”,解除260字符的限制,一般都说点击一下就好了,不过书中未提及,我就没点,到时候出现这类相关错误了再说呗。