Laravel framework evaluation, to be informed,
Laravel is a good framework, I also learn and use, and in the company to promote, the new project is used Laravel. But I think the main topic said thinkphp is garbage I do not agree, the moon is really
The cause and the cause, here no longer tell, directly into the subject of project development, I would like to dedicate to the small partner who likes to study GIT
Project structure:
+ router.php//Routing files
+ app.php//Application files
+
PHP File Upload error type
There are 7 types of $FILES [' file '] [' ERROR ']:
1, UPLOAD_ERR_OK
Its value is 0, no error occurred, file upload success.
2, Upload_err_ini_size
The value is 1, and the uploaded file exceeds the value of the
form.php
Upload:
upload.php
Set the upload file size limit (unit B) $max _size=500000;
Set the file format of the upload file limit $format =array ("Image/jpeg", "Image/gif", "image/png"); File upload directory $dir =dirname (__file_
Error_reporting: Set what PHP error to quote
Exception: Exception (unexpected problem) is the so-called error: (1) error occurred while writing (2) error at runtime
Exception handling:Usually the wrong message is not returned to the user, but the
1. Bubble Sort Method* Thinking Analysis: The law, as its name, is like bubbling, each time from the array to take one of the largest number out.* For example: 2,4,1//The first time the bubble is 4* 2,1,4//The second time the bubble is 2*
Output in PHP returns the previous level of code:echo " Click here to return ";The code in WAP is:@header ("CONTENT-TYPE:TEXT/VND.WAP.WML");?> back-->Code to call in WAP:@header ("CONTENT-TYPE:TEXT/VND.WAP.WML");?>Or Call
Join WAP
1. Functions to detect the correctness of the domain name format
Detect domain name format
function Checkurl ($C _url) {
$str = "/^http (s?): \ /\/(?: [A-za-z0-9-]+\.) +[a-za-z]{2,4} (?: [\/\?#][\/=\?%\ -&~ ' @[\]\ ': +!\.#\w]*)? $/";
if (
Recently to do a Web site, the background requires users to manually create folders, after the site was written, running very well under Windows, the results of a problem on the server, in the manual creation of folders, there is no error, but into
/** * Custom multiple, to get decimal corresponding to the multiple of the set of the multiple * @param $str Custom Multiple String * @param $num decimal number * @return The corresponding number of binary digits/function
XBin ($str, $num) {$num
1, Display_error = On this option sets whether the error message is displayed to the screen as part of the output, or is hidden from the user.
Log_errors_max_len = 1024 Run-time error log has a maximum length of 1024 bytes (which affects the
Constants
What is a constant
Constants are the amount of value that is never changed. Cannot be modified, cannot be deleted. Named Rule constants have the same naming rules as variables, but not the "$" symbol constant name can only start with a
PHP is a useful function parse_url, especially convenient for the analysis of information capture. Examples are as follows: Copy code code as follows:
$url = "http://www.electrictoolbox.com/php-extract-domain-from-full-url/";
$parts = Parse_url
0? $check _t
Ime:time (); $cNumber = [Date (' I ', $time),//0-59 date (' H ', $time),//When 0-23 date (' J ', $time),//date, 1-31 dates (' m ', $ti
ME),//month 1-12 date (' W ', $time),//Chow days 0 (Sunday) to 6 (Saturday)];
$CRONARR =
Install Nginx, mysql see: http://blog.csdn.net/kingzuo/article/details/8648536
1, Download:
Php-5.4.12.tar.gz
and upload the Linux directory/home
#cd/home
#tar ZVXF php-5.4.12.tar.gz
#cd
A Demo.txt file will be produced in the root directory; successful write Hello! "); $StrConents = "Hello!"; The content to be written to the file if (!fwrite ($TxtRes, $StrConents)) {//write the information to the file echo ("Try to file".
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