I have never been familiar with PHP Object processing. I used to find a manual when I was using it. Today, someone asked questions about watermarks at the phpchina forum. I just want to learn about them, so I studied how to implement image
After Apache is installed, you can finally get started with PHP. Let's get started. First, decompress the downloaded php-5.2.0-win32.zip file. If you like the directory, I will decompress it to D: \ PhP5 for convenience. If you want to change the
The US web page provides you with 5 PHP Spaces
01: illegal Chinese laws and pornographic content cannot be placed.
02: this time, we will apply for five places. Five quota applications are released in succession.
03: follow the latest
Build a simple interaction website (6)
9. Simple banner Dynamic Replacement
I wonder if you have found the header advertisement banner on all major sites. Every time we visit these sites, we will see different advertisement icons, or if every
Install PHP in CGI Mode to Apache 2.0:
Insert the following command into the httpd. conf configuration file of Apache to set the CGI binary file:
ScriptAlias/php/"c:/php /"AddType application/x-httpd-php. phpAction application/x-httpd-php "/php/php.
After updating the blog program today, I suddenly found that the PR entry on the google toolbar has been added a little bit, but the PR on the Google toolbar has been due to buffering problems, so that the current display of the PR value is not
AddSlashes: adds a slash to the string.
Bin2hex: Binary to hexadecimal.
Chop: removes consecutive gaps.
Chr: returns the character of the ordinal value.
Chunk_split: Splits a string into segments.
Convert_cyr_string: Convert the ancient Slavic
Pear is a PHP extension and application library. It contains many useful classes. After php5.0 is installed, pear is not actually installed. The installation method is as follows:
1. Double-click the go-pear.bat in the php Directory.
2. enter some
/*************************************** ***********************
Parameter description:$ Max_file_size: size limit of the uploaded file, in bytes$ Destination_folder: File Upload path$ Watermark: whether to add a watermark. (1 indicates adding a
For example, echo number_format (285266237 );
Output 285,266,237
In addition, if you need to format the file size in bytes, the following methods can be used for reference:
Function byte_format ($ input, $ dec = 0){$ Prefix_arr = array ('B', 'k'
Some small things may be useful sometimes!
1. Obtain the Client IP address.
Function getip (){If (! Empty ($ _ SERVER ["HTTP_X_FORWARDED_FOR"]) {// proxy usage$ Tip = split (",", $ _ SERVER ["HTTP_X_FORWARDED_FOR"]);$ Cip = $ tip [0];}Else$ Cip = $
Expand your php
Expand your php
Three extension methods
Extension dll extension
Summary
First of all, note that all of the following operations are performed under win, using the tool VC ++ 6.0.
Expand your PHPPHP plays an important role in
Many may have headaches for regular expressions. Today, I want to use the expressions that ordinary people can understand with my understanding and some online articles. Share your learning experience with you.
The beginning is still worth
The basic syntax format of php is similar to that of C. If you have never learned C, you will be familiar with the format after several minutes to see how other people's source code is
Configuration of the php environment is definitely a headache for beginners. There will always be such problems and many detours.
So I wrote this configuration document specially today. I believe you will succeed by following the steps below. I also
Use sock technology to send emails without server support. Fast !!
Copy codeThe Code is as follows: function send_mail ($ to, $ subject, $ body)
{
//// // Smtp information, which can be modified to your ,//////////
$ Loc_host = "longbill"; // The
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