I will explain in detail the steps for generating static pages in PHP: To study this static page generation, I have spent a lot of time to share my experience with you:
I will explain in detail the steps for generating static pages in PHP: To study
The following code will be called in html & lt; scriptsrcfckeditorfckeditorjs & gt; & lt; script & gt; & lt; scripttypetext webpage effect & gt; functionshowfck () {varofckeditorn
The following code is to be called in html.
The source of accepted news content is sometimes the text content in TextBox. However, if the text content is not processed, the text will not have any format, and will be displayed row by row.
The source of accepted news content is sometimes the
Parseerror: syntaxerror, unexpectedT_LNUMBER & lt ;? Php first has a problem with your variable assignment. when str_replace () is not performed, the error $ a & amp; 39; & quot; will be reported;
Parse error: syntax error, unexpected T_LNUMBER
Fatalerror: cannotredeclare is a php problem that may be encountered during development. The reason is that the same name function is repeatedly called. See the following example:
Fatal error: cannot redeclare is a php problem that may have been
& Lt ;? Php this function mainly uses the file modification time function filemtime and the current time-in-case subtraction to determine whether to update the content. $ Cahetime2; set the Expiration Time $ cahefile & quot; cahetxt & quot ;;
Here we briefly introduce the problem that php solves the problem of displaying only one space for multiple input spaces. We use chr (32) to replace it with an html space character. the instance code is as follows:
Here we briefly introduce the
In php, by default, there is a new line feed for the code. There is also a line feed for the carriage return. rn and our ascii chr (32) chr (13) are carriage return and space respectively, the following describes how to use line breaks between
PHP Chinese garbled characters sometimes occur on the web page, and some occur in the MySQL interaction process, sometimes related to the operating system. The following is a summary.
During development, php and mysql may encounter Chinese garbled
When using a php product today, the following error message is displayed: Allowedmemorysizeof8388608bytesexhausted (triedtoallocate46080bytes:
Today, when using a php product, Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080
The include () and require () functions are basically the same (include), but there are also some differences in usage. include () is a conditional include function, while require () it is an unconditional include function.
There are two methods to
Today, we use regular expressions to determine whether preg_replace replaces u5c71u4e1c, which is escaped by jquery. However, Chinese problems may still occur in some time periods.
Today, we use a regular expression to determine whether
Solution: In the phpini file, move extensionphp_mbstringdll to extensionphp_exifdll, because exif needs to call mbstring, so mbstring must be in front
Solution:In the php. ini file, move extension = php_mbstring.dll to extension = php_exif.dll,
1 The difference between isset () and empty () is used for testing variables. However, isset () is used to test whether a variable is assigned a value, while empty () is used to test whether a variable that has been assigned a value is null. If
1.
Php developers may have encountered the issue of garbled text. The following describes how to solve garbled text in php file garbled text and page garbled text and phpmysql database connection.
Php developers may have encountered the issue of
If this error occurs, the program fails to call the & amp; 39; ZipArchive & amp; 39; class, the reason is that no phpzip support (non-zlib) is added during php installation)
This error indicates that the program failed to call the 'ziparchive' class
PHP has come out of the stable version 538, so it is almost ready to upgrade the PHP on the company's production server from 5217 to 538, but found a strange problem during the testing server debugging:
PHP has come out of the stable version 5.3.8,
According to my experience, garbled characters in php and mysql are generally document encoding problems, such as gbk, uft8, and gb2312, which are inconsistent with page encoding. Solution 1: no extensionphp_mysqld in phpini
According to my
If the ASCii code is greater than 0xa0, it is half a Chinese character. learn about substr (), mb_substr (), and ord (). The commonly used encoding formats are UTF8, GBK, GBK2312, and BIG5. GBK is an upgrade of GBK2312.
If the ASCii code is greater
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