PHP program for converting Chinese Dates

Ben ProgramOutput the Chinese date to-12-23, and solve the "10" problem well, such as handling the "10" in "11" and "21! A slight modification can be changed to a function. $ STR = "December 23 A Year "; Echo $ Str. " "; $ Flag = 0; $ Cn =

PHP topic navigation program

$ D_label = array ("service" => "paid service", "teach" => "tutoring center", "union" => "Campus Service Alliance ", "job" => "student part-time", "free" => "Information Library "); $ Directory = $ request_uri; While ($ directory! = "/") { $

Use PHP to create a static website template framework (4)

Static website template framework First, we will write a template file for all the common page elements and the overall layout of the page as before. Then, we will delete the public part from all the pages, leaving only the page content; next,

Configure PHP to support both GIF and JPEG

Problem: After Blue Point Linux 2.0 is installed, PHP programming can only process GIF images, but not JPEG images. Later I learned that PHP used the GD library to process images, and the GD library started to support GIF. However, due to the use of

Use PHP to create a static website template framework (2)

PHP Code Save all to a separate file, which is actually called by the page url. The Web server parses the file through the PHP engine and returns the result to the browser. In general, PHP code always dynamically generates page content, such as

Use PHP to create a static website template framework (1)

Templates can improve the website structure. This article describes how to use a new function and template class of PHP 4 to skillfully control page layout in a website composed of a large number of static html pages. Outline: =================

PHP + sqlserver implement paging display

$ Id = @ mssql_connect ("ddy", "sa", "") or die ("unable to connect "); $ Db = mssql_select_db ("ddy", $ id ); $ Query = "select * From lr00 order by lr0012 DESC "; $ Result = mssql_query ($ query ); If ($ result ): If ($ TT = ""){ $ Nopa = 0 ;

Get the name value passed by the image button in PHP

I need to use the image button to beautify my web, but using the connection transfer method will show the variable value in the browser bar, which looks uncomfortable. If I use hidden to submit, I think there is no need, because since the image has

Use PHP to automatically call flash on different servers

Recently, the school celebrated a Flash Animation Website, but its size was relatively large. If it is uploaded to the school server, access from the public information network is slow, and access from the campus network is not smooth, but

PHP methods for calling three databases (3)

Oracle is the most popular relational database in the world. It is a powerful engine of industrialization promoted by large companies. Let's first look at its related functions: (1) integer ora_logon (string user, string password) Start the

Random ad display (PHP function)

######## Random ad display ########## Function myads (){ $ Dir = "ads"; # Set the directory for storing records // $ Dir = "ads"; # Set the directory for storing records $ Ads = "$ DIR/ads.txt"; # Set ads Code File $ Log = "$ DIR/ads. log"; # Set

Example of a PHP text message book (3)

In the last two sections, I spoke about guest. php and edit. php. Note the differences between PHP and HTML: PHP is usually --> (1) (2) Echo ("zihanonline "); ?> (3) (4) And so on. Do not confuse. Next we will study information management: Manage.

Example of a PHP text message book (2)

Last time we studied guest. PHP file. the specific problem also requires readers and friends to practice it in depth, and requires some tool books to learn. If you have no knowledge of PHP, I advise you not to read it, I don't have much time and

Use PHP to write the stenographer (details)

PHP instance profiling: counters Author: sucre_tiger This counter uses text to count and does not use a database. The following functions can be implemented: Use a text file to count multiple pages to reduce the I/O usage of the server. In the file

Use PHP to achieve link popularity statistics

First, you must note that this is not a homepage counter, although the principle is the same as it. 1. Prepare a counting file to store the link URL and the number of visits. The format is as follows: Id | URL | count ID is the index number used for

Php ftp Learning (1)

By Vikram Vaswani Melonfire November 07,200 0 We are a loyal fans of a group of PHP, and we use it for various reasons-Web site development, drawing, database connection, etc.-we found it very friendly, powerful and easy to use ...... You may have

Session on setting up a PHP personal website (III)

Three homepage news publishing makes it easier for you to update (medium) We made a file header last time (as for the end of the file, please do it yourself, assuming it is tail. PHP), a function module. Now, let's implement a basic function,

PHP methods for calling three databases (2)

Open Database Connection (ODBC) has become an industrial standard for communicating with databases. PHP also provides standard interfaces so that PHP can call databases such as access and SQL Server. The related functions are: (1) integer

An example of PHP + MSSQL Paging

Require "config. php "; DL ("extensions/php_mssql70.dll "); If (! Isset ($ page) {$ page = 1 ;} If ($ page $ Db = mssql_connect ($ local, $ user, $ pass ); Mssql_select_db ($ name, $ dB ); $ Query = mssql_query ("select count (*) as date from news",

Multi-php server for concurrent running of multiple sessions

First, we will introduce the concept of session: The so-called session was first proposed by Microsoft and first integrated in asp. The use of sessions greatly facilitates the work of web developers. Asp became popular all over the world. Now, php4

Total Pages: 12780 1 .... 10312 10313 10314 10315 10316 .... 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.