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 =
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,
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
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
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:
=================
$ 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 ;
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
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
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 ##########
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
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.
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
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
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
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
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,
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
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
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