After installing good apache2+php5, now want to install the last MYSQL5 play.
With the source code installed good mysql5, found that the original Linux to add new extensions to PHP, unlike in Windows, remove the semicolon annotation on the line ~
A
Background: I call the API with my colleagues to do data processing and return the processing results
Interaction: I pass a picture message over to him over there. Returns a JSON object that identifies the result of the image.
Method: Use PHP's own
Need to use PHP to send mail, do not want to phpmailer so complex, looking for to find, finally found a good, share out, PHP mail send class, a total of two files. The code is as follows:
sent_mail.php
This is a test program ";//message
* S-let Meta character '. The ' match includes all characters within the newline character
*
/$pattern = '/go ogle.+123/uix ';
$subject = ' I love google__123123123123123123 ';
$matches = Array ();
Preg_match ($pattern, $subject,
HTML form for file upload:
Note: The enctype= "Multipart/form-data" must be written, otherwise the $_files array is empty and the value is not available.
The $_files array reads as follows:$_files[the original name of the '
Online and provide download database design documentation$dbserver = "192.168.128.190:42578"; $dbusername = "root"; $dbpassword = "root"; $database = "Eke" ;Database address: Remember to add portGet all the tables below the library, and the
Array BasicsArray length count ($attr);for ($i = 0; $i Foreach(){}Array BasicsIn PHP, the subscript of an array can be an integer, or a string. in PHP, the order of elements in an array is not determined by the subscript, but by the order in which
Common time method Public function Invitationtime ($type, $v) {if ($type ==1) {//Today $beginToday = Mktime (0,0,0,date (' m '), date (' d '), Date (' Y ')); $endToday = Mktime (0,0,0,date (' m '), date (' d ') +1,date (' Y '))-1; $where = "Superior
* View Php.net Official BrochureString Str_pad (string $input, int $pad _length [, string $pad _string = "" [, int $pad _type = str_pad_right]])* JavaScript code/** * Pad A string to a certain length with another string */var str_pad_left =
Https://github.com/imaben/php-beast-binariesDLL can be downloaded right here under WindowsDepending on your PHP version and whether it is thread-safe to choose to download the correspondingIn the corresponding extension directoryTo add an extended
Today, a friend asked me about the difference. Let's review it by the way.
"" Fields in double quotation marks are interpreted by the compiler and then treated as HTMLCodeOutput.
''Is output directly without being interpreted in single quotes.
[Assertion]; Assertion (expr); enabled by default.; Assert. Active = on
; Initiate a PHP warning for each failure assertion.; Assert. Warning = on
By default, bail is not allowed.; Assert. Bail = off
If the assertion fails, the user-defined function
I. developer
A) Project SupervisorB) page artistC) page developmentD) server program developmentE) system and data managementF) test and Version Control
2. Simple website Group Development Process
Iii. development tools and environment
A) Server
// Calculate the number of days from January 1, January 1, a.m., $ mm, and $ dd. function datelocal ($ yyyy, $ mm, $ dd) { $ monthdays = array (, 28, 31 ); // The number of days of a month in a non-leap year // determines whether the value is a
Array () to create an array.Array_change_key_case () returns an array with uppercase or lowercase keys.Array_chunk () Splits an array into new array blocks.Array_combine () creates a new array by combining two arrays.Array_count_values () is used to
1 single and double quotation marks
$ Var = 12345;
Echo $ var; // print the value of $ var variable 12345
Echo '$ var'; // print the string '$ var'
Echo "$ Var"; // print the value of $ var variable 12345
?>
No matter what is in single quotes, it is
The clearstatcache () function is used to clear the File status cache.
PHP cache data is very advantageous for faster and better function running. If a file is tested in a script
After multiple attempts, you may not cache the correct results. To
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