How to solve the problem of PHP Chinese garbled
First, solve the HTML problem of Chinese garbled method1, add UTF8 Code (internationalization code) in the head tag: UTF-8 is no country code, that is, independent of any language, any language can
Test1 Interface:
testphp
The first method of communication///The second method of transmitting the parameter//the third way of transmitting the parameter "> the fourth type of the method of communication
Test2 Interface:
';
notice:undefined variableThis is to print the warning on the page, although this is beneficial to exposing the problem, but there are many problems in implementing it.You need to set the display error level to resolve the issue.A common solution on
Is_file determines whether the file exists and checks whether the specified filename is a normal file;
File_exists determine whether the file exists or whether the directory exists;
Is_dir determine whether the directory exists;
Look at the manual,
The following error is reported under Mac 10.11 Phpize:
grep:/usr/include/php/main/php.h:no such file or directory
grep:/usr/include/php/zend/zend_modules.h:no such file or directory
grep:/usr/include/php/zend/zend_extensions.h:no such file or
The use of graphics verification Code for Laravel Framework Learning
Component of the next graphics verification code
Composer require gregwar/captcha=1.*
In the controller
Use gregwar\captcha\captchabuilder;public function xxx (Request
Single-Case mode:
Mode: Provides a static method created or created in a constructor. Static methods are commonly used.
1. Constructor Private access Properties
2. Static pointers to this class
3. Static method of creating itself
The following is
The thinkphp of PHP framework
1. Introduction
thinkphp is a free, open-source, fast, and simple object-oriented, lightweight PHP development framework that follows the release of APACHE2 Open source license Agreement for Agile Web application
Personally feel to really understand the source code, if only stay in theory is not enough, so from now on, to start learning to develop their own nginx module, and then in turn to understand Nginx itself code.
Nginx send files or forward
Because the result is quickly filled with a page, so first record it!
First PHPMiyoshi teenager
';//11/* * 1,echo no return value, can output multiple strings, Comma separated ~ * 2,print Total return 1, can only output a string ~ *
For the image of the site, each time you open the page to re-download the picture, slow not to say, but also a waste of traffic. Then you need to use the cache to force the browser to cache the picture file
Cache files, ask the website to visit
In the actual test when PHP read the JSON array using a simple if or array_key_exists to determine whether the object exists will be error, the following is the correct way to determine Google search
In fact, it's just that I'm not very proficient
Remember: TP files can not be modified and need to be modified in the corresponding module of the project
Configuration file
Core: thinkphp/conf/convertion.php
Public: common/conf/config.php
Block module: home/conf/config.phpAbove the
Installing Nginx with Yum is easy. Simple configuration is all you need!
The first step is to configure the Nginx source
Create a source profile Nginx.repo under the/etc/yum.repos.d/directory:cd /etc/yum.repos.d/ vim nginx.repoFill in the following
今天,遇见了一个问题,有些小尴尬,因为我好久没有用过PHP了,所以对smarty不是太熟悉,一开始以为这个是前端html的问题。这里,有一个检索功能,输入检索的信息后,一触发检索后会跳转到检索的结果,可是检索条件信息就被规制为初始化的了。
问题也就是如何使其不会归置为默认值,大致的思路有二:1、使用ajax技术,实现不刷新页面获取数据;2、就是刷新页面获取数据喽!很可惜,第一种太高大上,小白不会,(虽然我第二种也不会),相比较,第二种倒是容易学会。于是尝试起来了修改。
This is the
Today to save the picture, use the file_put_contents () to save the picture, run a few times, the hair has no data come out, thought that this function did not operate successfully
So I looked at the usage and return value of the function, and
mysql_connect () connection Database
mysql_select_db Selecting a Database
MYSQL_FETCH_ASSOC () Get result set
mysql_query () Execute SQL statement
Examples are as follows:
"; while ($row =mysql_fetch_assoc ($userInfo))//Get data for each row of
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