随笔分类 - PHP/Python/Ruby
摘要:1、tar -xvf python-2.6.4.tar2、Cd python-2.6.43、./configure --prefix=/home/tmxu/local/python4、make && make install5、将python的路径加入.bash_profile中的PATH.,并执行source .bash_profile使配置立即生效PATH=$PATH:/home/tmxu/local/python/bin export PATH=/home/tmxu/local/python/bin/:$PATH
阅读全文
摘要:(1)urlencode函数。将传入的字符串参数进行URL编码。语法如下:String urlencode ( string str ) ;其返回的字符串中除了“ˉ—.”之外,所有非字母数字字符都被替换成百分号(%)后跟两位十六进制数,空格则编码为加号(+)。此函数便于将字符串编码并将其用于URL的请求部分,同时还便于将变量传递给下一页。使用urlencode函数进行编码的示例如下:<?php echo ' < a href = " # ? lmbs= ' , urlencode ( " 李四 " ) , ' " &g
阅读全文
摘要:require_once pathinfo(__FILE__, PATHINFO_DIRNAME) . '/import_helper.php';
阅读全文