为php提供ssh2的支持
原贴:http://www.haw-haw.org/node/150
用来在php程序里方便的连到远程主机
执行程序
并取回结果
首先,系统需要已经装有openssl和openssl-devel包
rpm -qa | grep openssl
然后,安装libssh2
当下来源代码后
./configure && make all install
再然后,安装PECL/ssh2
可以用命令pear install ssh2
(眼前可能只能用pear install ssh2-beta
)
或者是去PECL/ssh2
当下来源代码
然后
phpize && ./configure –with-ssh2 && make
再然后把生成的ssh2.so
文件拷贝到php.ini
中申明的extension_dir
目录下(这里是/usr/lib/php4)
cp modules/ssh2.so /usr/lib/php4/
再在/etc/php.d目录下新建一个文件ssh2.ini
echo "extension=ssh2.so" > /etc/php.d/ssh2.ini
再重起web server,让其重读php.ini
搞定
原创文章,转载请注明:
转载自嘻嘻哈哈的部落格(blog)
本文链接地址:
为php提供ssh2的支持
相关文档:
PHP批量取得checkbox的值
1、命名
<input type='checkbox' name='checkbox[]' value=$dwmyrow[banzhu] />
2、使用
当计划当作sql指令的一部分时:如果参与控制的字段是数值型的,则
if(! empty($_POST['checkbox'])) {
$expr = join(",", $_POST['checkbox']);
$sql = "select * from tbl_name where field in ......
PHP4:
<?
$sample1 = new StdClass();
$sample1->name = "Hasin";
$sample2 = $sample1;
$sample2->name = "Afif";
echo $sample1->name;
?>
In PHP4 it works differently; it will output Hasin, as both are different from
each other.
PHP5:
<?
$sample1 = new StdClass();
$ ......
来源:蓝色理想 作者:Dreamer 2007年10月16日 14:50 网友评论:0条 点击:
2737
Dreamer的Blog:www.zhuoqun.net/
英文原文:Creating MyTube with Flex and PHP
原文地址:
http://www.onlamp.com/pub/a/php/2007/05/24/creating-mytube-with-flex-and-php.html
原文作者:Jack Herrington
随着宽带的普及、 ......
If you want to put some big table in the pdf file, you may got the layout messy. One way to solve the problem is to change the paper size. In "includes/cpdf_adapter.cls.php", Change the size you used in the array to whatever you want.
One tip: Replace Url into Clickable link.
$tex ......
/*
>>> Author: 刘晨晖
>>> Date : 2009-07-05
>>> EMAIL :
huichengongzi@gmail.com
>>> 转载请注明出处,谢谢合作!
*/
配置php.ini文件 (以上传500M以下大小的文件为例)
查找以下选项并修改->
file_upload ......