PHP complete calendar CLASS)

Copy codeThe Code is as follows:Class Calendar {/** Www.jb51.net revised version*/Var $ YEAR, $ MONTH, $ DAY;Var $ WEEK = array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday ");Var $ _ MONTH = array ("01" => "August

Using notes in PHPEXCEL

First, use PHP Reader to read Excle content:Copy codeThe Code is as follows:Require ("http://www.jb51.net/PHPExcel/Classes/PHPExcel.php ");$ File = "D :\\ datas.xlsx ";If (! File_exists ($ file )){Die ("no file found in {$ file }");}$ DatasReader =

No output cause analysis is available before header and session_start in PHP.

In http transmission text, it is required that the header and content must be in the following order: the header must be in the front content, and the header must be in the format of "keyword: value \ n.1. If there is output content before the

Introduction to the xml reading method in PHP

I. What is xml? What is xml used?XML (Extensible Markup Language) can be used to expand the Markup Language. Like HTML, It is SGML (Standard Generalized Markup Language, Standard common Markup Language ). Xml is cross-platform in the Internet

Use PHP to instantly capture errors in PHP and send email notifications.

PHP developers all know that the most worrying thing is that there are some exceptions or errors in the program. If these conditions are output to the user's screen, the user will be frightened and even lost their work, if it is not output to the

PHP and XML: Use the expat function (3)

PHP and XML: Use the expat function (3)How to use this class in a PHP script? It is actually very simple. Here is an example:First, the class definition needs to be included in the script.Require (CLASS_DIR. "class. Newsboy. php ");Then, we create a

Use PHP and ACCESS to write chat rooms (4)

The Code is as follows:$ ConnID = @ odbc_connect ("jtfcht", "admin ","");If ($ ConnID ){@ Odbc_exec ($ ConnID, "DELETE * FROM Room WHERE (RoomID Not IN (select distinct RoomID FROM User) AND RoomID <> 1 ");$ Result = @ odbc_exec ($ ConnID, "SELECT

Php Singleton mode implementation (the object is created only once)

A singleton class has at least three common elements: You must have a constructor and be marked as private.Static member variables of an instance that stores classes.Has a public static method to access this instance For more information, see the

Imitating OSO forums (1)

 I believe that everyone who has been to OSO will leave a deep impression on the OSO forum, which is both outstanding in that aspect. If you don't want your homepage to have such a beautiful forum, it is not very complicated. Below we will only

PHP encoding and conversion functions automatically convert character sets to support array Conversion

Copy codeThe Code is as follows:// The automatic conversion character set supports array conversion.Function auto_charset ($ fContents, $ from = 'gbk', $ to = 'utf-8 '){$ From = strtoupper ($ from) = 'utf8 '? 'Utf-8': $ from;$ To = strtoupper ($ to)

How PHP generates static HTML documents

Code:Copy codeThe Code is as follows:// Introduce the Database Configuration FileInclude (dirname (_ FILE _). "\ include \ config. php ");/**** Generate a single HTML file from the database.* @ Param Date $ Date* @ Param Time $ Time* @ Param String $

Php code summary for preventing malicious page refreshing

The principle of preventing malicious page swiping is:A verification string must be passed between pages,A random string is generated when a page is generated,As a required parameter, it is passed in all connections. At the same time, this string is

Php eval function usage tips for eval () functions in PHP

EvalEnter the value in the string.Syntax: void eval (string code_str );Return Value: NoneFunction Type: Data ProcessingDescriptionThis function can be used to substitute variable values in a string for processing database data. The code_str

Implementation Code for manually submitting data when the object loses focus

To solve this problem, you must use onblur. The following code is not a project implementation code, but a simulation of the same function.Copy codeThe Code is as follows: . Aspx. cs:Copy codeThe Code is as follows:Using System;Using System.

Introduction to delimiters and atoms in PHP Regular Expressions

This section describes the basic syntax of Regular Expressions in PHP: delimiters and atoms. The content includes the definition of delimiters and the definition and composition of atoms. The composition of atoms is flexible to meet our needs for

Php compares the size sorting implementation code of the values in a multi-dimensional array

If the values are not repeated, you can use array_flip () to exchange keys and values, then krsort (), and then array_flip () to compare the values. Array_slice () is available to intercept arrays ().If there are duplicate values, some sorting

PHP simple method of entering publishing information in multiple steps instance code

1. phpCopy codeThe Code is as follows:Basic Information 1: Basic Information 2: 2. phpCopy codeThe Code is as follows:Product name: Product price: Product Model: "/> "/> 3. phpCopy codeThe Code is as follows:Other information 1: Other information 2

Several Processing Methods for elements with multiple names in the PHP output Array

1. You can directly use the php built-in function array_intersect ()Array array_intersect (array $ array1, array $ array2 [, array $...])Array_intersect () returns an array containing all values that appear in the array of all other parameters at

Php control linux Server common functions shutdown restart start new site, etc.

Php contains a system method that can call system commands.Create a script (like/root/reboot_server.sh) and restart it.Copy codeThe Code is as follows:#! /Bin/bashReboot Grant him another permission of 4755Chown root: root/reboot_server.shChmod 4755/

Php debugging tool debug_print_backtrace ()

If we want to know who called a method? Debug_print_backtraceDebug_print_backtrace () can print out the call process of a page, from where to see clearly.However, this is a PHP5 proprietary function. Fortunately, it has been implemented in pear,Http:

Total Pages: 12780 1 .... 12030 12031 12032 12033 12034 .... 12780 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.