宗小宗-PHP程序猿

欢迎各位朋友前来,如果我的文章中有不对的地方,还望指正;如需转载,请注明原处

1 2 3 4 5 ··· 21 下一页
摘要: update mytest inner join(select '2' as id, sleep(5)) a on mytest.id=a.id set mytest.name='xiaowang'; 阅读全文
posted @ 2018-06-06 20:17 宗小宗 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # # Author: yeho # Blog: https://blog.linuxeye.com # # Installs a PPTP VPN-only system for CentOS # Check if user is root [ $(id -u) != "0" ] && { echo -e "\033[31mError: You must be ... 阅读全文
posted @ 2018-04-25 16:11 宗小宗 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1.生存私钥 openssl genrsa -des3 -out private_key.pem 1024 2.生成公钥 openssl rsa -in private_key.pem -pubout -out public_key.pem 阅读全文
posted @ 2018-04-16 11:19 宗小宗 阅读(4700) 评论(0) 推荐(0) 编辑
摘要: key = $key; } else { throw new Exception('The only supported ciphers are AES-256-CBC with the correct key lengths.'); } } public function encrypt($value) { ... 阅读全文
posted @ 2017-08-31 11:32 宗小宗 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 例如我的eth0网卡信息如下 现在我想把我的本地IP固定成192.168.79.133(用虚拟机的童鞋都知道,IP老是变化好麻烦) 1.查看网关地址,我的是192.168.79.2 2.查看DNS,我的是192.168.79.2 3.配置网卡信息,我的是 vim /etc/sysconfig/net 阅读全文
posted @ 2017-06-23 15:12 宗小宗 阅读(3172) 评论(0) 推荐(0) 编辑
摘要: 输出结果:230 分析,switch先匹配一个case满足$a,然后执行case里面的语句,直到遇到break,否则一直往下执行 阅读全文
posted @ 2017-02-07 10:28 宗小宗 阅读(3327) 评论(0) 推荐(0) 编辑
摘要: version:5.6.21 file:Zend/zend_compile.c line:7055-7152 解析 该函数是在语法解析的时候,编译器扫描到namespace xxx;namespace xxx{};namespace {};三种形式的时候调用 zend_do_begin_namesp 阅读全文
posted @ 2017-01-18 20:49 宗小宗 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 逆波兰记号计算器【文件名rpcalc.y】%{ #define YYSTYPE double #include #include #include int yylex (void); void yyerror (char const *); %} %token NUM %% input: /* empty */ | input line ; line: ... 阅读全文
posted @ 2017-01-16 15:25 宗小宗 阅读(703) 评论(0) 推荐(0) 编辑
摘要: './configure' '--prefix=/usr/local/php5.6.21' '--with-config-file-path=/usr/local/php5.6.21/etc' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/l 阅读全文
posted @ 2017-01-12 15:34 宗小宗 阅读(158) 评论(0) 推荐(1) 编辑
摘要: 编译,运行,结果 [root@bhu les5]# re2c -o demo.c -c -t demo_def.h demo.l [root@bhu les5]# gcc -o demo demo.c -g [root@bhu les5]# ./demo "<?php 3ee344SDEFeee@# 阅读全文
posted @ 2017-01-11 17:13 宗小宗 阅读(424) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 21 下一页