from sys import argvscript, user_name = argvprompt = '> 'print "Hi %s, I'm the %s script." % (user_name, script)print "I'd like to ask you a few quest...
分类:
其他好文 时间:
2014-10-23 13:58:52
阅读次数:
170
$_SERVER 是一个包含了诸如头信息(header)、路径(path)、以及脚本位置(script locations)等等信息的数组。这个数组中的项目由 Web 服务器创建。不能保证每个服务器都提供全部项目;服务器可能会忽略一些,或者提供一些没有在这里列举出来的项目。下表列出了所有 $_SER...
分类:
Web程序 时间:
2014-10-23 12:21:26
阅读次数:
320
1.__FILE____FILE__ always equals to the real path of a php script regardless whether it's included.__FILE__ helps you specify the file to include usin...
分类:
Web程序 时间:
2014-10-22 20:18:45
阅读次数:
242
# cat /etc/init.d/httpd#!/bin/bash## httpd Startup script for the Apache HTTP Server## chkconfig: - 85 15# description: The Apache HTTP Server ...
分类:
Web程序 时间:
2014-10-22 18:05:32
阅读次数:
352
一、将本机文件复制到远程服务器上scp /home/test/script.tar test@10.10.10.10:/home/test/update/home/test 本地文件的绝对路径script.tar ...
分类:
系统相关 时间:
2014-10-22 17:26:38
阅读次数:
190
1. 下载:下载页面:http://vimcdoc.sourceforge.net/选择“Latest platform independent tarball, including an Linux/BSD installation script”【1】下载。2. 安装:网上好多人所说的“解压,把...
分类:
系统相关 时间:
2014-10-22 14:31:57
阅读次数:
248
1、背景查看flower的源码,首先看到flower的主程序如下:#!/usr/local/sinasrv2/bin/python2.7# EASY-INSTALL-ENTRY-SCRIPT: 'flower==0.7.3','console_scripts','flower'__requires_...
分类:
编程语言 时间:
2014-10-22 14:13:21
阅读次数:
284
Coding for removing servername from the views.--The following script is to find out the existing views of the database machine's displayUSE Database;S...
分类:
其他好文 时间:
2014-10-22 09:55:53
阅读次数:
195
一.运行脚本的最常见方式是在HTML文档中使用HTML<script>和</script>标记,在HTML文档的头部和主体部分加入均可。 二.<script>标记有6中特性:type、language(已不建议使用)、charset(大多数浏览器不识别,不建...
分类:
编程语言 时间:
2014-10-21 21:44:52
阅读次数:
275
用XMLHTTP取得脚本的内容,再创建Script对象,另外注意编码保持一致,因为服务器和XML使用UTF8的编码传送数据。类似于预报加载这些js脚本文件。界面上尽量不要出现没有必要引用的js文件,减缓页面加载速度不说,还容易出现js错误。
实现方式: 1-3种方法是异步的,基本上都在一个主界面(需优化的界面上采取,动态写,改,生成一个script脚步)。来实现异步加载js。。所以,在采用这种方式优化时,主界面的js脚本是继续执行的。所以可能出现通过异步加载的js代码得不到预期的效果情况,这时候可...
分类:
Web程序 时间:
2014-10-21 21:44:17
阅读次数:
242