When I recently learned about URL redirection, I introduced three super-useful PHP encryption and decryption functions, which seem to be in discuz... The reason for using these encryption and decryption is that sometimes your URL address is obtained
For AJAX or Flash applications, submitting Chinese content to the background involves encoding and decoding (encode, decode) and conversion of encoding formats. After a day, I came up with an eye.
For AJAX or Flash applications, submitting Chinese
PHPString class. Currently, only the encode and decode methods are supported.
Usage:
The code is as follows:
$ S = 'China ';
$ OS = new String ($ s );
Echo $ OS-> decode ('gbk '),'';
Echo $ OS-> decode ('gbk')-> encode ('md5 '),'';
Code
The
In the past few days, you need to write a program to extract the FLASH address of a video website address, such as an address of Youku. Then I implemented this function using PHP. I think it is a pleasure to use PHP to do this job! With its powerful
Because the id in the database may be large. If % d is used, the correct result may not be returned because it is out of the range. Therefore, it is recommended that %. 0f be better than % d when formatting the id. Compare to construct SQL
DedeCMS core class TypeLink. class. php abstract notes. learning php is to learn from and analyze it so that you can learn more. Dede
Note: '// +' indicates additional comments added to me.
Class TypeLink
{
Var $ typeDir;
Var $ dsql;
Var $ TypeID; //
This is a very simple function, iconv (). However, this function cannot be converted successfully after many examples are found online. why? At last, the Emperor did not lose heart, but the answer still found me.
This is the case on the Internet.
Today, I am building a blog installer. The first step is to create a configuration file. First Look
File interface before creation
After the configuration file is created, the system prompts that the installation cannot be repeated.
Let's go to
Dedecms sets the basic code version for ads. For more information, see. Dede
1. at the end of each article in the article, click the advertisement position above the top,
The size of this position is 658*60 658 length. do not change the height of 60
PHP itself has some problems with the old version, such as some serious bugs before php4.3.10 and php5.0.3, so we recommend that you use the new version. In addition, the vigorous SQL Injection is also widely used in PHP, so to ensure security, PHP
Formphpmysql implements identity authentication
The code is as follows:
$ Uname = $ _ POST ["username"];
$ Pwd = $ _ POST ["password"];
$ Link = mysql_connect ('localhost', 'root', '123 ')
Or die ('could not connect: '. mysql_error ());
Lists all the most confusing PHP questions for beginners. For more information about learning php, see. [1] The get and post variables cannot be passed between pages. in the latest php version, automatic global variables are disabled, to obtain the
When downloading the xdebug extension, pay attention to the correspondence between the xdebug version and the php version, otherwise there will be unnecessary trouble! Xdebug installation
When downloading the xdebug extension, pay attention to the
This document is intended for PHP programmers who have some experience. it will introduce some development skills in PHP development and hope to inspire readers.
1. improve PHP running efficiency
One of the advantages of PHP is that it is fast. it
Upload the file to the website. The shortcut cut. php prompts you to download a file named Zhangchu website. urll. saving it locally is a shortcut! Create a new PHP document: just remember the name, for example, export cut. php.
Content in the PHP
Extension functions are stored in the * Smartylibsplugins Directory. the file name format is modifier. xxxx. php, and the function name format is functionsmarty_modifier_xxxx.
Chinese: modifier.cn _ truncate. php
The code is as follows:
Function
The php article content is paginated and the corresponding htm static file instance code is generated. Generally, the main user is paging long files.
The code is as follows:
$ Url = 'Test. php? 1 = 1 ';
$ Contents = "fjka; fjsa; # page # generate
Joomla has its own form verification function, which can be easily used for verification. if the verification fails, the input box is marked with a red border when an error is reported. it is clear that the missing items are missing. The usage is as
In Joomla, you can use configuration. php to store simple data code. For more information, see.
Write process
The code is as follows:
// Get the path of the configuration file
$ Fname = JPATH_CONFIGURATION.DS. 'configuration. php ';
// Clear
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