Original: http://dason.blog.51cto.com/658897/505312
Apache Virtual Host configuration (multiple domains access multiple directories)
To facilitate the management of the virtual host, I decided to use one method, that is, to modify the
Here is a class I provided, which encapsulates these three features:
IMGSRC = $IMGSRC; $this->init ();} /*** initialization Operation */private function init () {//Get picture information (through the GD library method, get the basic information
/** * Bubble sort: stable, time complexity O (n^2) * Bubble Sort method is the simplest sort method. The basic idea of this approach is to think of the elements to be sorted as "bubbles" that are vertically arranged, smaller elements lighter, and
partitioning of time zones
The world is divided into 24 time zones, each time zone has its own local time, the same time in the local time zone of 1-23 hours, such as the local time in London and Beijing local time difference of 8 hours. In the
This article describes how PHP reads the contents of a torrent seed file. Share to everyone for your reference, as follows:
stack, Array ($this->y, $this->z, $this->m , $this->n, $this->stat)); List ($this->y, $this->z, $this->m, $this->n,
Copy the Code code as follows:
$a = Array (' A ', ' B ', ' C ');Require ' template/demo.php ';//reference template?>
Template file:
Copy the Code code as follows:
Template testing
Copy the Code code as follows:
Key values:
Each access to the Laravel will boot to the routes.php file
A route is usually given to a controller to handle
Controller
1. Create a Controller' PHP artisan make:controller controllername 'Note: ' PHP artisan make:controller
One, the following is the CI framework
1. Put all the fields you want to receive in the array
Cases:
I want to receive: fields such as Id,name,age,mobile
$req Array (' id ', ' name ', ' age ', ' mobile ');
2, for the loop to judge can
1 for ($i
This example describes the insertion of a substring method in a PHP string. Share to everyone for your reference, as follows:
First look at a common online approach:
Method One: String traversal
function Str_insert ($str, $i, $substr) {for ($j =0;
The example in this article describes how PHP iterates through parsing XML strings. Share to everyone for your reference, as follows:
HTTP
/index.html
2
Fatal error:cannot redeclare Htmtocode () (previously declared in D:\www_local\mytest\conn.php:7) in D:\www_local\mytest \conn.php on line 10
This error message appears when you write the paging file page.php
Google Translate this sentence means
The first step. First of all use the regular to pull out from the article.
Copy the Code code as follows:
$message//article contentRegular (this is not yet)$reg = "/]*src=\" (http:\/\/(. +) \ (. +) \. ( JPG|GIF|BMP|BNP)) \ "/isu";Store the
Copy the Code code as follows:
The so-called hyphenation (word break), a place where a word can be broken when changing careers. This function truncates the string at the hyphenation point.Please acknowledge use of the this Code by including the
For static pages there is an etag.
First of all, look at this: Apache static page
The static page that Apache sends to the client typically contains the last-modified and ETag, the values of which are from the modified time of the static file and
Chart Library
The following class library allows you to easily create complex diagrams and pictures. Of course, they require the support of the GD library.
Pchart -a library that can create a chart.
Libchart -This is also a simple statistical
PHP session By default is saved as a file on the server side, and in the client using cookies to save variables, this will be a problem, when a user for some security reasons closed browser cookies, session related operations in the program will not
WinXP under apache2.052-win32+php4.39-win32+mysql4.022 configuration by
Apache,php4,mysql, can be down on the Internet, here is not to say,
I just did it and I wrote it out for you to share.
(i) Apache configuration
1. Install APACHE_2.0.52-WIN32,
From a good message to get the MySQL database operation class, beginners PHP friends can refer to the next
Copy the Code code as follows:
Class mysql{var $querynum = 0;Function Connect ($dbhost, $dbuser, $DBPW, $dbname = ', $dbcharset = ') {if (!
One, PHP script code tag
PHP script is a special tag in the file included in the content, such as ASP is "", PHP can be seen as "
”。
However, in order to adapt the XML standard to embed PHP into XML or XHTML, PHP does not recommend using the short
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.