12.1 Lnmp Architecture Introduction12.2 MySQL InstallationThe MySQL installation here is the same as the lamp-installed MySQL, which steps together asIf you reinstall, you should uninstall the previous installation, and then follow the steps
1. The write function creates an array of length 10, the elements in the array are incrementing odd numbers, and the first item is 1.function Createarr ($first, $length) {for ($i = $first; $i $num = $i-1;$arr [] = $num;}return $arr;}Print_r
Use PHP programming to develop a "virtual domain name" system. if your server can also implement a simple domain name. In fact, this is not complicated. You can also create a simple domain name system.
The key technology of the simplified domain
PHP multi-level menu program #--------------------------------------------------------
# Data table structure 'menu'
#--------------------------------------------------------
Create table menu (
Menu_id int (11) not null auto_increment,
Menu varchar
It is mainly implemented using curl and requires php support for curl.
The code is as follows:
Header ("Content-Type: text/html; charset = utf-8 ″);If (isset ($ _ GET ['Number']) {$ Url = 'http: //
During php file preparation, a blank line is displayed on the top of the browser when previewing the php file, which affects the page layout, A blank line will appear on the top, affecting the page layout.
The BOM header is described as follows::
When exporting data to excel, the number becomes scientific count. if you need it, you can refer to the following two situations.
1. insufficient length for excel cellsSolution:
The code is as follows:
// In the excel. php file$ ObjActSheet = $
In the unix world, the newline is replaced by n, but in windows, rn is used to reflect its differences, and r is more interesting in mac. Therefore, unix series use n, windows series use rn, and mac use r. Therefore, using the program you write to
We often use phpExcel to import or import xls files. However, if the data exported at one time is large, a memory overflow error occurs, next I will summarize the solution. phpExcel saves the read cell information in the memory. we can use
The
Cut off the title of the article and control it in 15 texts. next we will explain how to implement this requirement. if you are interested, refer to Function: mb_substr ($ str, $ start, $ length, $ encoding)
$ Str: string to be truncated
$ Start:
Regular expressions in PHP (2) confirm repeated appearance
Until now, you know how to match a letter or number, but in more cases, you may need to match a word or a group of numbers. A word may consist of several letters, and a group of numbers may
Click a button or link on a page to generate a shortcut for a link and download it to the local device. if you use php, you can use the following methods to download a link:
The code is as follows:
$ Shortcut = "[InternetShortcut]URL = http:/
Section 5-clone /*
+ ------------------------------------------------------------------------------- +
| = This article is Haohappy read
>
| = Notes in the Classes and Objects chapter
| = Translation-oriented + personal experiences
| = Do not
This article provides a detailed analysis of the use of phpcurl. For more information, see curl, which is a very powerful function in php, every php programmer should learn and be familiar with curl. before using curl, make sure that your php_curl
PHP to open phpMyAdmin 403 error solution, you can refer to the installation of wamp to open phpMyAdmin is the path http: // localhost/phpmyadmin/
Appears
Check the code to understand it.
The solution is as follows:
The code is as
Linux PHP + MYSQL + APACHE configuration process (abstract) I. install MYSQL mysql-standard-5.0.18-linux-i686.tar.gz
I downloaded all of them to the/usr/local/software Directory.
Go to the installation package directory: cd/usr/local/software
1.
This article describes how to use mysql_fetch_array () to obtain the data of the current row. For more information, see mysql_fetch_row () it also gets the data of the current row in the result set and automatically slides down a row after the call.
This article provides a detailed analysis of the reasons for not using (includerequire) _ once. for details about how to use include or include_once (require_once is included below ), this article has been discussed for a long time and has been
This article provides a detailed analysis of Chinese character transcoding using php. For more information, see the following:
The code is as follows:
Function unicode_encode ($ str, $ encoding = 'gbk', $ prefix = '& #', $ postfix = ';'){$
This article provides a detailed analysis of Hessian's use in PHP.
What is Hessian?Hessian is an open-source remote communication protocol provided by caucho.
The binary RPC protocol is used for HTTP transmission. the server does not need to open
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