Laravel5.1 series video recording completed
After a period of recording, the Laravel 5.1 series of videos have been recorded. well, they are free of charge. if you are interested, take a look.1. basic Laravel 5 tutorials for freeHttps://
Programmer's home-programmer's Forum [advertising sponsorship quotation]
(The latest update in 2016) programmer's home advertisement sponsorship cooperation description (this site is not making profits by advertising, and is developing
Laravel5.1 log on with the user name
If you study laravel logon, you can find this code.
Public function loginUsername ()
{
Return property_exists ($ this, 'Username ')? $ This-> username: 'Email ';
}
The
PHP generates a letter prefix
[PHP] code
Function ff_letter_first ($ s0 ){
$ Firstchar_ord = ord (strtoupper ($ s0 {0 }));
If ($ firstchar_ord> = 65 and $ firstchar_ord = 48 and $ firstchar_ord
$ S = iconv ("UTF-8"
Phpsmtp sends an email
Php needs to send mail via smtp through a class smtp The code for sending an email is as follows:
Require_once 'smtp. php ';
######################################## ##
$ Smtpserver =
PHP retrieves all links on the specified URl page
// Obtain all links on the specified URL page
Function get_url_href ($ url ){
$ Html = file_get_contents ($ url );
$ Dom = new DOMDocument ();
@ $
PHP web page capture
Header ('content-Type: text/html; charset = utf-8 ');
/**
* A class used to capture images
*/
Class download_image {
Public $ _ save_path = NULL; // save path
Three methods of rounding php
Three methods of rounding php are implemented by rounding the number_format function, the round function, and the sprintf formatting output method.1. implement rounding of number_format
$ Number
This article explains in detail how php + html5 implements chat rooms based on websocket. This article describes how php + html5 implements chat rooms based on websocket. Share it with you for your reference. The details are as follows:
Html5
E-mail notification to the customer after the message board replies
Bytes ---------------------------------------------------------------------------------------------------------------------Modify 2:E/admin/tool/gbook. php:
Include
Explanation of $ str & amp; quot; $ & amp; quot; in php
This method is called variable.Sometimes it is convenient to use a variable name. That is to say, the variable name of a variable can be dynamically set and used. A common variable is
Php display user-friendly time
In one minute, "just" an hour "* minutes ago", "Today's Hour: Minute", "yesterday's Hour: minute" more than 2 days ", year-month-day hour: minute"
// Format the time
Function format_date ($
Php extracts the main color of the image
$ I = imagecreatefromjpeg ("image.jpg ");
For ($ x = 0; $ x
For ($ y = 0; $ y
$ Rgb = imagecolorat ($ I, $ x, $ y );
$ R = ($
Common methods for exporting Excel files using PHP
/**
* Export data to an excel table
* @ Param $ data: A two-dimensional array with a structure similar to the array found from the database
* @ Param $ title the
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