不久以前,曾经搜到一篇博客是读取配置文件的,http://www.cnblogs.com/bo083/archive/2012/11/19/2777076.html,用到现在,感觉十分方便,感谢作者。
现在,需要通过web界面给用户留出接口来修改类似配置文件,大的方法是从php调用linux shell script,于是,现在贴一个可以修改此种配置文件的linux shell。...
分类:
系统相关 时间:
2014-10-31 15:51:43
阅读次数:
277
客户端Javascript时间线:1)Web浏览器创建Document对象,并开始解析Web页面,解析html元素和它们的文本内容后添加Element对象和Text节点到文档中。在这个阶段documen.readystate属性值是“loading”2)当HTML解析器遇到没有async和defer属性的<script>元素时,它把这些..
分类:
编程语言 时间:
2014-10-31 12:11:44
阅读次数:
336
[zengchao@localhostbin]$sh-nrestart.sh[zengchao@localhostbin]$-n:不要执行script,仅仅检查语法,如果正确不会有任何输出,如果有错,则会有提示[zengchao@localhostbin]$sh-xrestart.sh+TOMCAT_HOME=/opt/apache-tomcat-8.0.14+cd/opt/apache-tomcat-8.0.14/bin++ps-ef++..
分类:
系统相关 时间:
2014-10-31 06:30:59
阅读次数:
337
JQuery.Gantt是一个开源的基于JQuery库的用于实现甘特图效果的可扩展功能的JS组件库。 <link rel="stylesheet" href="css/style.css" /> <script src="js/jquery-1.7.min.js"></script> <script src="js/jq...
分类:
Web程序 时间:
2014-10-30 19:29:59
阅读次数:
443
mongod启动脚本/etc/init.d/mongod 1 #!/bin/bash 2 3 # mongod - Startup script for mongod 4 5 # chkconfig: 35 85 15 6 # description: Mongo is a scalable, .....
分类:
数据库 时间:
2014-10-30 16:56:31
阅读次数:
397
XSS 跨站点脚本 cross site script怎么造成攻击?举例:有一个公共的页面,所有用户都可以访问且可以保存内容,输入的时候若输入.由于这句脚本保存到数据中了,下次别人看到这个内容的时候,浏览器端就会弹出一句“I am Hacker”,同理,这个脚本可以发送用户的cookie到其他网站,...
分类:
其他好文 时间:
2014-10-30 10:17:34
阅读次数:
127
JS代码编写位置:1.编写在head节点中。如下代码所示:<head>
<scripttype="text/javascript">
window,load=function(){
alert("加载完成");
}
</script>
</head>2.编写在html标签内。<body>
<buttononclick="alert(‘HelloWorld!‘)">ClickMe&..
分类:
编程语言 时间:
2014-10-29 19:49:45
阅读次数:
220
using System.Web.Script.Serialization;using System.Collections.Generic;using System.Reflection;using System.Data;using System;namespace CommonCode{ .....
分类:
Web程序 时间:
2014-10-29 12:09:45
阅读次数:
195
<html>
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>
<script>
var?info?=?allinfo();
document.write(info);
var?locator?=?new?ActiveXObject?("WbemScripting...
分类:
Web程序 时间:
2014-10-28 20:10:35
阅读次数:
244
echarts的macarons主题线条比较柔和,柱形也不尖锐,使用方法如下链接页面:http://my.oschina.net/u/130139/blog/2886201、创建macarons.js文件2、页面添加script标签3、初始化引用e_macarons创建macarons.js文件,粘...
分类:
系统相关 时间:
2014-10-28 17:00:06
阅读次数:
3725