The usage is very simple. You only need to include a file...
/*** Auto_cache.php implements intelligent automatic cache. * Extremely easy to use: * require 'Auto _ cache. PHP '; it's OK * @ author rains31@gmail.com * // This file does not allow
Introduction: This is a detailed page for $ _ server variables. It introduces PHP, related knowledge, skills, experiences, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 332946 '
Introduction: this is an image watermark.ProgramThe details page of PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 326933 'rolling = '
An article in the IBM document AreaArticleRest Description: http://www.ibm.com/developerworks/cn/web/wa-ajaxarch/
What is rest? Find a simple and easy to understand: Building Web services the rest way.
Based on this article, I sorted out my own
In PHP website development, you often need to set and apply the PHP environment variables to meet the needs of the website. In the virtual host environment, sometimes we need to use the PHP environment variable operation letter.To set the PHP
Difference between double quotation marks and single quotation marks:
Variables contained in double quotation marks are automatically replaced with actual values, while variables contained in single quotation marks are output according to common
P {margin-bottom: 0.08in ;}
Flash andASP:
Paste the two Codes first.:
Flash:
Webpage tutorial Network
VaR Loader: urlloader = new urlloader ();
VaR URL: URLRequest = newURLRequest ("test. asp ");
URL. method = urlrequestmethod. post;
VaR
Class upload_class {Private $ ptname; // The Name Of The upload form;Private $ udname; // whether to create a subdirectory by month (0 indicates no, others are true );Private $ ufname; // whether to create a file name by time (0 indicates no, others
Some of these PHP concepts are difficult to understand at the beginning. I listed them all in the hope that they could help some people with less thorns on the way forward.
1. variable variables (variable)
Variable_variables.php
Copy codeThe Code
For a new contact1. $ _ SESSION ['php _ SELF '] -- php server variable $ _ SERVER gets the file name of the currently executing script
2. $ _ SERVER ['server _ Protocol'] -- name and version of the communication PROTOCOL when requesting the page.
Understand global variables in PHP and global variables
Several super global variables (superglobals) are pre-defined in PHP, which means they are available in all scopes of a script. You can use it in functions and classes without special
Difference between POST and the end slash in the URL.
When debugging an interface, the php file name is index. php, which is placed under the directory/checkmail.
The url for access is/checkmail, and the post method of JQuery is used for
When you need to upload images to a regular website, you often need to add the LOGO watermark of your website to the image. So how to implement this step? First, let's take a look at the principles of adding watermarks to PHP images.
Create an image
(Code snippets are successfully tested and uploaded successfully !)
Because yesterday I remembered the impulse to learn PHP code. It came from something similar to the company's IMAGE LIBRARY. So today, when we have a conceptual understanding of PHP
/*************************************** ***********************
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
1. Do not use relative pathsWe often see:
Require_once ('../lib/some_class.php ');
This method has many disadvantages:
It first looks for the specified php inclusion path and then finds the current directory.
Therefore, excessive paths are
Php_server. SERVER variable $ _ SERVER details: 1. $ _ SESSION [PHP_SELF] -- get the file name of the currently executing script 2, $ _ SERVER [SERVER_PROTOCOL] -- Name of the communication protocol and version SERVER variable when requesting the
The program that uses PHP to add a watermark to the uploaded image is to create a graph by determining the file type, copy it to the original image, fill it with and create a rectangle for writing it to imagestring () or determine the watermark type
Php file upload (powerful File Image Upload class ). Php file upload (powerful File Image Upload class) This file Upload utility code allows you to easily upload your specified file or image, at the same time, you can quickly restrict the upload of
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.