The htmlmeta and link generated by php are marked in the body tag, and there is a blank line at the top of the browser. 1. html generated using the smarty template in php has a blank line at the top of the browser.
2. use firedebug to find that
Among the many predefined SERVER variables in PHP, $ _ SERVER [& quot; REQUEST_URI & quot;] is frequently used, but this variable is only supported by apache. therefore, we need a more general method to obtain the value of REQUEST_URI. This article
PHP provides a complete set of methods to read XML files, so you can easily write XML-based scripts. This chapter introduces PHP and XML operations and briefly introduces several common XML class libraries. XML is a popular semi-structured file
XML (Extensible Markup Language) is a W3C standard used for easy interaction between Web applications and servers and data storage and use.
1. XML introduction
XML (Extensible Markup Language) is a W3C standard used for easy interaction between Web
PDO (PHPDataObject) is a new feature added to PHP5, in the past, php4php3 in PHP5 was a bunch of database extensions to connect to and process various databases, such as php_mysql.dll, php_pgsql.dll, php_mssql.dll, and php_sqlite.dll.
1. about PDO
Integer is a number in Z {...,-2,-, 1, 2. Integer can be in decimal, octal, or hexadecimal format.
In octal notation, the number must start with 0 (0;
In hexadecimal notation, the number must begin with 0x (Zero x) or 0X (zero capital X;
Integer
Image processing: the implementation of watermarking and thumbnails (custom functions: watermark and thumbnail) code is a bit long, but not complex. Don't talk nonsense. paste the code:
The code is as follows:
/**********************************
Compare multiple cycles and move the maximum number to the top of each comparison. During each loop, find the maximum value in the remaining variables and then reduce the query range. After multiple loops, the array is sorted.
The code is as
When the website was launched, modoer and ucenter could not communicate. I had to spend almost two days. at first, I thought that my configuration was faulty. after the platform was transplanted, I could not communicate. I modified the configuration
This chapter briefly introduces some internal mechanisms of the Zend Engine, which are closely related to Extensions and can also help us write more efficient PHP code. I. basic knowledge
This chapter briefly introduces some internal mechanisms of
The usage of Smarty-related considerations and several ways to share access variables, you can refer to the need of friends. $ Tpl = new Smarty (); // create a new smarty object. what I use is
Smarty-1, 3.1.6Version
1. set the path to the smarty
The fifth part of the Chinese character encoding study series describes the encoding principles of the urlencode () and urldecode () functions. the two functions are used to encode the URL string and decode the encoded URL string respectively, the
Php code used to check whether a geographic IP address is available. For more information, see
The code is as follows:
/*************************************** ******* Function name: curl_string ($ url, $ proxy)* For use: check the proxy IP
Apache + PHP installation and configuration in Win9xME is one of the many WEB Server software and has become one of the most popular web Server software on the Internet. Compared with other web server software (such as PWS, IIS, and UNIX), Apache
Code for operations such as reading and modifying the config. php file. For more information, see
The code is as follows:
$ Name = "admin"; // kkkk$ Bb = '000000 ';$ Db = 4561321;$ Kkk = "admin ";?>
Function definition:
Configuration file data
Php generates a thumbnail code. For more information, see. the transfer process is relatively long because the image data volume is large, you often want to display a thumbnail of an image. although you can scale the image at will by specifying the
It also took one year in the company. Today, the company is growing and its products are becoming more and more perfect. although there was no major problem with the database operation function, it took one day to rewrite this function to become
Judge "new" function: obtain the number of seconds between today and tomorrow. if you want to determine whether a time value (expressed in seconds) is within the range of today. The following function makes it easy to judge.
Function Source code:
-
In practical applications, this situation occurs: variables are transmitted and received between ajax and php. to implement this function, many new friends can only sigh with hope, so I collected some practical skills and shared them with you,
When the gd library of php is enabled on windows Server, gd is not found in ConfigureCommand in the result obtained by phpinfo () after cgi is used. it is very confusing, so I collected some information, hope to help you. if you are interested, you
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