1 Modifying the Apache httpd.conf file
#LoadModule Rewrite_module modules/mod_rewrite.so
Get rid of the front #
2 found the. htaccess file in your program directory
The contents are as follows
Rewriteengine on
Rewritebase/
today the friend's website again problem (because just moved to new space various problems), so looked up a problem, found PHP data decode
After changed to NULL, this is very strange ah, so I measured in the local, no problem, then I went online
Smarty
First, the principle of the template
1. Why use a template
1) Scene:
for ($i =0; $i
Echo '. $row [' Proname ']. '
}
This type of writing adds HTML to PHP and is not conducive to development and maintenance
2) Scene:
We have now developed a
public void _set (string $name, mixed $value)
Public mixed _get (string $name)
public bool _isset (string $name)
public void _unset (string $name)
Public mixed _call (string $name, array $arguments)
The functions of these methods are as
1, install MySQL, zlib, etc.
Issue record
1, Configure:error:Cannot find MySQL header files Under/usr/include/mysql.Note that the MySQL client library isn't bundled anymore!Tip I can't find the MySQL header filesSurf the internet for a bit, with
Composer, a tool similar to the Yum in CentOS, solves dependencies. PHP has to solve the dependence of ...
One, install composer
To https://getcomposer.org/, go to download download. Linux and Windows are available, and the installation is simple.
Thinkphp inside the same template inside the method call
Public Function A (& $txt) {
$txt. = ' hh ';
}
Public Function B () {
$b = ' BBB ';
$this->a ($b);
echo $b;//' BBBHH '
}
&$: Address Call
Public Function C () {
$a = ' hh ';
I. Creating a service Script
vim /etc/init.d/nginx
The script content is as follows
#!/bin/sh# Chkconfig:- aboutPath=/web/server/nginx/sbindesc="Nginx Daemon"name=nginxdaemon=/web/server/nginx/sbin/$NAMEconfigfile=/web/server/nginx/conf/$NAME.
We first completed the background PHP process, the main work of PHP is responsible for the allocation of prizes and the corresponding probability of winning, the current page click to flip a block will want to background PHP to send AJAX requests,
A period of time before the network to engage in activities, giving away cloud server, so registered a domain name. Just recently had time to make a website. Website positioning for tossing and playing technology, the idea into realization, sharing
Simple Factory mode example-Simple TV Factory
Abstract Product class Tvinterface TV {public function play (); Specific Product class Haiertvclass HAIERTV implements TV {public function play () {echo ' Haier TV play ...';}} Specific Product class
PHP/** * View a list of Windows system processes and find out if the specified process exists*/$tasklist = $_server["windir"]."/system32/tasklist.exe"; //find the path to tasklist under Windows systemPrint ($tasklist); Print the path to the tasklist@
As we said earlier in the class, the method that declares "--" the method name of the beginning (PHP provides to us),
is a method that executes automatically at some point in different situations, the "__tostring ()" method is also automatically
阅读源码的最好方式就是跟踪调试代码,这里介绍了如何利用GDB调试nginx的配置和步骤。
Modifying a configuration file
修改nginx.conf:
#user nobody;offoff;
Daemon off; indicates that the daemon mode is turned off, so that the sub-processes that are traced to the fork are removed from GDB.
PHP Version: PHP5 >= PHP5.2.0
Namespaces are a way of wrapping things,
Using namespace: Relative file path, the current working path relative to the script path;
: Relative subdirectory path, current working path relative subdirectory path;
: Jedi
1. Delete the first character of a string:
$string='';foreach($arrayas$key$value){ $string",$value";}$string = substr($string,1);
2. Define the page encoding format:
meta http-equiv=content-type content="text/html; charset=UTF-8">header("Content-
The Apache rule [l,p] in the meaning of the force for the proxy, the URL you requested of course will not change, Nginx is not forced to override the parameters of the proxy, of course, you can also use a workaround location:
Location ~ ^
Query ("$sql");//}//Create a new ID storage table, in fact, there is no need to call ID, if the business volume of large by month day also line, by increment also line. CREATE TABLE ' Test '. ' create_id ' (' ID ' BIGINT () not NULL auto_increment
When using thinkphp, the name in the form must be the same as the name in the database in order to insert the data into the database, sometimes we do not want to let others know the field names in the database then we can use the thinkphp field
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