Image processing functions: Zoom, cut, frame, watermark, sharpen, rotate, flip, transparency, invert color, process and save the history of the idea: when there are changes in the picture to automatically generate a new picture, naming method can be
Copy CodeThe code is as follows:
PHP gets today's start timestamp and end timestamp
$beginToday =mktime (0,0,0,date (' m '), date (' d '), date (' Y '));
$endToday =mktime (0,0,0,date (' m '), date (' d ') +1,date (' Y '))-1;
PHP gets yesterday
###############################################
This article is original, if quoted, please indicate the author's information.
Email:leo_cdp@yeah.net
http://www.cfeng.net/
This code is reproduced arbitrarily, use please keep this statement
##########
Support text watermark, image watermark support watermark location random or fixed (nine Gongge) Watermark Transparency settings (image watermark and text watermark are supported) text watermark font, color, size set picture watermark background
PHP dynamically change the image size after output, the output image using the following address:Image_resize.php?img=image.jpg&w=150&h=150&constrain=1W and H are the dimensions to be displayed
Header ("Content-type:image/jpeg");
php:php Version 5.0.0B4
apache:apache/2.0.49 (WIN32)
1, as CGI to run
2, as module to run
1, as a apache2 CGI run
scriptalias/php/"c:/php/"AddType application/x-httpd-php. phpAction application/x-httpd-php "/php/php-cgi.exe"Add the above code to
Get the visitor's IP address [PHP] Code
static public Function GetIP ()
{
if (getenv ("Http_client_ip") && strcasecmp (getenv ("Http_client_ip"), "Unknown")
{
$ip = getenv ("Http_client_ip");
}
This article is written in the Windows 2000 Simplified Chinese version (IIS5.0) environment, in Windows NT 4.0
IIS4.0 should also be suitable, have any questions please tell me, here thank you, ^_^
1. Software
What is a session? It is difficult to translate the session directly into Chinese, which is usually translated into time domain. In computer terminology, a session is a time interval between an end user communicating with an interactive system,
Guestbook section:
Class Members Guestbook: Display message: class/notebook/index.php
Session_Start (); Start session
if (!session_is_registered ("Userregister") | | ($userregister = = "")) Check whether registration, such as Userregister is not
Using PHP to save files to a database
A database is the center of data organization and storage. It is also possible to process a variety of data, including programs, files, reports, and even audio and video data. As a result of the browser,
Personal Management:
Class Address Book: class/address.php
Session_Start (); Start session
if (!session_is_registered ("Userregister") | | ($userregister = = "")) Check whether registration, such as Userregister is not registered or session is NULL,
PHP Resources
PHP Resources
You can learn more about PHP3 through the many resources on the web. Many mailing lists and books are very useful to you.
12.1 Site
PHP's explosive popularity has led to the advent of many PHP-based sites overnight,
Class pages{
var $cn; Connecting database Cursors
var $d; Cursors that connect to a data table
var $result; Results
var $dsn; DSN source
var $user; User name
var $pass; Password
var $total; Total Records
var $pages; Total pages
var $onepage; Number
File Two: error.tml
the domain name you queried [>domainext
[>error_msg
Query rule:
First you need to enter the domain name and domain suffix of the query.
Do not add "www." Before the domain name, "www." is the hostname,
Test Hardware Description:
The test is using my Love machine, configured as follows:
cpu:c433
Memory: 128M
HDD: Cool fish 2 generation 20G
Test Software Description:
WIN32 under Windows NT Server4,sp5,apache 1.3.12,php3.0.15 and Php4rc1,mysql 3.22.2
Building a simple interactive website (ii)
5.5 Counter
Let's add a counter to the home page. This example has been spoken many times, but it is helpful to demonstrate how to read and write files and create your own functions. Counter.inc contains
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