Java-based tank war instances and java tank war instancesOriginality statement
The source of this blog post is workshop. Author of this article original, mailbox zhujunxxxxx@163.com, if you have any questions, please contact the authorPreface I
When I was a child, didn't you play overlord like me? So you know how to implement it with a program? I have been thinking about this problem since that time! I realized this ideal when I was studying! Tank wars are divided into eight categories. I
The code is as follows
Copy Code
Class HTML{var $dir; Dir for the htmls (www.111cn.net/)var $rootdir; Root of HTML files (www.111cn.net/): HTMLvar $name; HTML File Store pathvar $dirname; The specified folder namevar $url; Gets the
Copy Code code as follows:
Class HTML
{
var $dir; Dir for the htmls (without/)
var $rootdir; Root of HTML files (without/): HTML
var $name; HTML File Store path
var $dirname; The specified folder name
var $url; Gets the source page
Script content:
The code is as follows
Copy Code
#!/bin/bash# Author:mos# Script Name:mos_ca.sh# Date & time:2013-01-06/23:05:35# version:1.0.2# Description:#[-f/etc/sysconfig/mos_ca.conf] &&.
Copy Code code as follows:
/*
When you use Ftp_nlist (), the returned array value can be of two types: varies by server
A: Separate file names
B: Contains the file name of the directory.
If misappropriated, please note change here.
*/
static | page
Class HTML{var $dir; Dir for the htmls (without/)var $rootdir; Root of HTML files (without/): HTMLvar $name; HTML File Store pathvar $dirname; The specified folder namevar $url; Gets the source page address of the HTML file
Class HTML{var $dir; Dir for the htmls (without/)var $rootdir; Root of HTML files (without/): HTMLvar $name; HTML File Store pathvar $dirname; The specified folder namevar $url; Gets the source page address of the HTML file informationvar $time;
Class HTML{var $dir; Dir for the htmls (without/)var $rootdir; Root of HTML files (without/): HTMLvar $name; HTML File Store pathvar $dirname; The specified folder namevar $url; Gets the source page address of the HTML file informationvar $time;
When the process starts running, three files of the corresponding device are automatically opened. They are standard input, output, and error streams, which are represented by the Global File pointers stdin, stdout, and stderr respectively, the
Copy codeThe Code is as follows:/*When ftp_nlist () is used for correspondence, two types of returned array values are available:A: separate file namesB: The file name that contains the directory.If you use this function, make sure to change it here.
Java extends the java.util.zip package to be compatible with zip data compression. It provides a series of classes for reading, creating, and modifying ZIP files.
Main classes:
Zipentry stores zip objects
Zipinputstream is an input filter
Copy CodeThe code is as follows:
Class HTML{var $dir; Dir for the htmls (without/)var $rootdir; Root of HTML files (without/): HTMLvar $name; HTML file storage Pathvar $dirname; The specified folder namevar $url; Gets the source page address of the
Add GD library support for php 1. install zlib, General Centos system has been installed, you can use the following command to view: [root @ Test-Web2 ~] # Rpm-qa | grepzlibzlib-1.2.1.2-1.2zlib-devel-1.2.1. added GD library support for php
1.
PHP class for generating static pages
The code is as follows:
Class html{Var $ dir; // dir for the htmls (/)Var $ rootdir; // root of html files (without/): htmlVar $ name; // html file storage pathVar $ dirname; // The specified folder name.Var
There's nothing special about enclosing the database connection and the text cache in a class.
Class db{
protected $_connect;
protected $_db = Array ();
protected $_cache = Array ();
Public function __construct
Copy CodeThe code is as follows:
Class HTML
{
var $dir; Dir for the htmls (without/)
var $rootdir; Root of HTML files (without/): HTML
var $name; HTML file storage Path
var $dirname; The specified folder name
var $url; Gets the source page address
This is a creation in
Article, where the information may have evolved or changed.
"Code" Golang implemented file services (including uploads, downloaded server side and client side)
(2013-09-20 02:03:52)
reproduced
Label:GolangGoFile
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.