?php//获得当前的脚本网址function GetCurUrl(){if(!empty($_SERVER[REQUEST_URI])){$scriptName = $_SERVER[REQUEST_URI];$nowurl = $scriptName;}else{$scriptName = $_SERVER[PHP_SELF];if(empty($_SERVER[QUERY_STRING])){$nowurl = $scriptName...
FTP server的有点可靠和高效的传输数据,嵌入式FTP server的用途大家可以想想,我一般用来监控文件上传、下载事件,方便、轻量,贴出关键代码 /** * FTP Server 启动 */ public void start() { Ft...
经常听到有人在抱怨这个语言哪里哪里不好,那个语言又是如何的优秀。对于这样的牢骚,我只是一笑而过。 就我而言,语言只是工具,没有好坏之分。只要你采用相应的语言,完成对...
一直在做php的开发工作.在开发的过程中老早就听说了伪静态这一说。但是一直没有对其进行了解。 首先,什么是伪静态: 伪静态又名URL重写,是动态的网址看起来像静态的网址。换句...
以下脚本用于linux系统的初始化脚本,可以在服务器系统安装完毕之后立即执行。脚本结合各位大牛一些参数,已经在CentOS 5下通过。 使用方法:将其复制,保存为一个shell文件,比如...
本文介绍 12 款很棒的 PHP 资源和工具,包括开发框架、开发工具、调试器等。 1. CakePHP CakePHP 是一个运用了诸如ActiveRecord、Association Data Mapping、Front Controller和MVC等著名设计模式的快速开...
#!/bin/bashipp (){exec $1while read adosring=`curl -s http://ip138.com/ips138.asp?ip=${a}action=2 |grep ul class=ul1li |awk -F[]+ {print $5}`echo $a $sringdone}case $1 in-f) shift ipp $1;;-i) shift sring=`curl -s http://ip138.com/ips138.asp...
#!/bin/bashBackupPath=/data/backup/testbk #备份路径Mysql_bk_dir=$BackupPath/mysql_bk_dirLogFile=$BackupPath/backuplogPasswd=admin #mysql密码####################################### define mysql variables################################...
#!/bin/bash## /etc/rc.d/init.d/tomcat# init script for tomcat precesses## processname: tomcat# description: tomcat is a j2se server# chkconfig:2345 86 16# description: Start up the Tomcat servlet engine.if [ -f /etc/init.d/functions ]; then...
#!/bin/bash# Nginnx Startup script for the Nginx HTTP Server# chkconfig: - 60 50# description: Nginx is a high-performance web and proxy server.# processname: nginx# pidfile: /usr/local/nginx/logs/nginx.pid# config: /usr/local/nginx/conf/ng...
简介 optparse模块主要用来为脚本传递命令参数功能. 引入 在IDE中...
腾讯云对象存储COS是类似于阿里云OSS,相比OSS,COS提供每月免费...
运算符 描述 示例 文件比较运算符 -efilename 如果filename存在,则...
5月3日,图像处理软件ImageMagick就被公布出一个严重的0day漏洞(...
记录一个rabbitmq启动脚本,修改部分参数即可用。 vi /etc/init.d/...
Golang的主要 设计目标之一就是面向大规模后端服务程序,网络通...