PHP script: code as you like is becoming popular. remember the exciting days when HTML evolved from version 1.0 to version 2.0, at that time, mastering a new Web language was just as simple as viewing the code after the Web site? Remember to easily
PHP overview. 1. what is PHP?
2. what does PHP mean?
3. What is the relationship between versions?
4. can I run different PHP versions at the same time?
5. what is the difference between PHP 3 and PHP 4?
6. I think I found a BUG. who should I tell?
1
The concept of object-oriented programming in PHP:
Different authors may have different ideas, but an OOP language must have the following aspects:
Abstract data types and information encapsulation
Inheritance
Polymorphism
In PHP, classes are
Output Control class
/**
*
* Author: Xu zouning)
* Email: czjsz_ah@stats.gov.cn
* Development: 2002.07
*
*
* Class: outbuffer
* Function: encapsulate some output control functions to control output objects.
*
* Method:
* Run ($ proc) to run the php
A piece of php encryption and decryption code
$ Key = "This is supposed to be a secret key !!! ";
Function keyED ($ txt, $ encrypt_key)
{
$ Encrypt_key = md5 ($ encrypt_key );
$ Ctr = 0;
$ Tmp = "";
For ($ I = 0; $ I
{
If ($ ctr = strlen ($
Management Program for downloading a program (3) // The source code of the background program sign. php is as follows:
If ($ action = "sign ")
{
If ($ say = "" | $ title = "" | $ url = "" | $ size = "")
{
Header ("location:.../message. php?
Simulate the implementation of OICQ and core program (3) 5. Send, read, and reply to chat information-shortalk. php
Require ("require. php"); // determines whether the user is a valid online utility
?>
Short message
PHP methods for calling three databases (3) Oracle is the world's most popular relational database. It is a powerful engine of industrialization promoted by large companies. Let's first look at its related functions:
(1) integer ora_logon (string
Php database connection through PHP you can easily connect to the database, request data and display it on your web site, or even modify the data in the database. MySQL is a very popular database, and there are many tutorials on PHP and MySQL on the
Send an email in an html table as follows:
/*************************************** ***************************************
Description: This is a simple script to send emails via a html-form
To different users
Date:
Author: amalesh kempf
Create
We also talk about how PHP and MYSQL can combine PHP and MYSQL reasonably and effectively to create exquisite database websites. MYSQL is a small, tight data server that supports standard SQL. It can be used in both UNIX and WINDOWS environments.
PHP variables for PHP learning
PHP3 supports the following types of variables:
(1) internal variables
Mainly include integer, float-point numbers, string, array, and object ).
1 Initialization variable
To initialize a variable in PHP, you just need
Install Apache1.3.14 + PHP4.0.4 in WIN98 1. install Apache
After installing apache (latest version 1.3.14), configure and install the httpd. conf file in the apacheconf directory as follows:
1.1 Search for # ServerName new. host. name and replace
Use PHP to call the database storage process! Use PHP to call the database storage process!
Author: fox4000
Yesterday, I saw a comrade-in-arms asking if I could use php to call the storage process. I thought it was okay. so I started the experiment
PHP Master path (2) 2. write beautiful code
1. separate background programs from front-end programs
When writing a PHP program, some code is used to process some transactions, such as database operations and mathematical operations. other code is
My Forum source code (2) main interface, that is, the page showing the topic list.
// Foxbbs. php: displays the topic of the Forum.
Fox Network Forum
Include "linkfox. inc. php ";
Include "info. inc. php ";
?>
$ Tem = $
Comments on the session function of php4 (iii) general feeling: the session function of php can be used easily, saving a lot of processing.
Cookie troubles. Php session management is based on files. the default value is in the/tmp directory.
Bbs design based on mysql (1) 1. System architecture:
The modular concept is divided into three layers:
A. Data storage layer: mysql is used to store all bbs data, including user information,
Article data, user mail, user message, system data (?),
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