All source code of the file upload program 1. upfile. php file
File Upload
2. upload. php
// Obtain the current date and connect it to a string
$ Datetime = getdate ();
$ Time = implode ("", $ datetime );
// Construct the file
Use PHP and ACCESS to write the chatting room (8) emotion. php3:
The code is as follows:
Emoticons
$ SEmotion = "0 ";
$ SColorID = "000000 ";
$ ConnID = @ odbc_connect ("jtfcht", "admin ","");
If ($ ConnID ){
If (! ($ Id = "1" & $
Using PHP and ACCESS to write a chat room (1) INDEX. PHP
The code is as follows!
Function delquot ($ sStr ){
$ S = str_replace (chr (124), "", $ sStr );
$ S = str_replace (chr (39), "", $ s );
$ S = str_replace (chr (34), "", $ s );
Return $ s;
}
Combined use of & # 106avascript and select components
// Use Javascript and select components in combination
// In the process of writing a program, after selecting the select object option,
// You do not need to submit a button, but directly
Use php + mysql for a business card library program with the function of searching by category and querying by page.
Step 1: Create a static page as follows.
Step 2: create a database as follows.
Id int (4) no auto_increment
Http varchar (25)
Statistics on the number of online users and daily visits of the database can be used to calculate the number of online users, daily visits, and monthly visits .....
$ SQL = "CREATE TABLE guestinfo (id integer DEFAULT '0' NOT NULL
Hello, everyone! I haven't seen anyone for a long time. The last time I wrote a PHP chat room through file operations, of course, it was full of loopholes, and every time I refreshed the screen, it was terrible! I have been thinking for a long time.
PHP beginners (5) building a simple interactive website (1)
Many features of PHP are related to other software or tools. Using the PHP knowledge we have learned so far, we can try to build a simple interaction website. We can learn a lot from this
Use php4 to accelerate web transmission
/***************************************
** Title ......: PHP4 HTTP Compression Speeds up the Web
** Version ......: 1.10
** Author ......: catoc
** Filename...: gzdoc. php
** Last changed...: 25/08/2000
*
A useful paging function
The code is as follows:
In my original code, it seems that the process may be clumsy, but it is very practical./*---------------------------------------------------------------//* Function description: paging function page
Php + mysql implement unlimited classification | tree-based display of unlimited classification of classification relationships, mainly by storing the id and classification path of the upper-level classification. Because the structure of the data is
PHP newbie (9) building a simple interactive website (5)
8. voting system
In many cases, we need to collect opinions from Internet users and netizens. For example, comparison between the new page and the old page, views on a specific event, and
PHP + MySQL5.0 Chinese garbled solution recently I learned Apache2 + PHP4.4.1 + MySQL5.0. the Chinese version is "???..... ", I found a lot of information on the Internet for a simple solution!
PHP script content for database connection:
Config.
Convert GB encoding to UTF8 using PHP
The gb2utf8. php file is as follows:
The code is as follows:
Class GB2UTF8{Var $ gb; // The GB2312 string to be convertedVar $ utf8; // The converted UTF8 stringVar $ CodeTable; // array of GB2312 Code files
How to use a script to simulate the login process to view the code on his login page, to see which page he submitted, and what the variable is.
The code is as follows:
Obviously, if you want to log on, you need to post the username, passwd, and
Several variants of the for loop statement in PHP can be said to be the most basic statement in the loop control part of PHP (also multiple languages, the execution rules and basic usage of for statements are not described here. for more information,
In PHP, time () is used to obtain a number. this number indicates how many seconds have elapsed since.
However, this facilitates computing,
Find that the previous day is time ()-60*60*24;
Find that the time of the previous year is time () * 60*60*24
I used PHP and ajax to solve the Ajax cache problem. after adding data, I refreshed the front-end page without changing the data.
I changed the PHP dynamic script. only by re-finding IE and entering the address can I see the effect.
Are these
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