12 2011 档案

摘要:scp就是secure copy,一个在linux下用来进行远程拷贝文件的命令。有时我们需要获得远程服务器上的某个文件,该服务器既没有配置ftp服务器,也没有做共享,无法通过常规途径获得文件时,只需要通过简单的scp命令便可达到目的。一、将本机文件复制到远程服务器上#scp /home/administrator/news.txt root@192.168.6.129:/etc/squid/home/administrator/ 本地文件的绝对路径news.txt 要复制到服务器上的本地文件root 通过root用户登录到远程服务器(也可以使用其他拥有同等权限的用户)192.168.6.12. 阅读全文
posted @ 2011-12-19 00:32 潺莪 阅读(139) 评论(0) 推荐(0) 编辑
摘要:1.google开放api$urlToEncode=”http://bbs.lewanchina.com“;generateQRfromGoogle($urlToEncode);function generateQRfromGoogle($chl,$widhtHeight =’150′,$EC_level=’L',$margin=’0′){$url = urlencode($url);echo ‘<img src=”http://chart.apis.google.com/chart?chs=’.$widhtHeight.’x’.$widhtHeight.’&cht=qr 阅读全文
posted @ 2011-12-07 03:50 潺莪 阅读(2834) 评论(0) 推荐(0) 编辑