Found a very strange problem that I was using
fwriteWhen writing to the file, the program does not error,
fwriteThe number of words written is also returned, but the contents of the file are empty.
$path =
Apache Environmentlocalhost:82
Problem:
Browser input localhost:82, no response (all normal yesterday), but 127.0.0.1:82 can access
Case1. The error log is as followsApache Error.log
httpd.conf Red Pen is the place I have changed
In Ubuntu 12.04 LTS, use
sudo apt-get install PHP5-FPM
The PHP version installed is PHP5.3, if you want to use the YII2 or laravel framework, the PHP version is at least 5.4+, so upgrade.
Upgrade steps
Initialize the operation:
sudo apt-get
The article has three commonly used functions, respectively, is to determine whether it is a legitimate user name, to determine whether it is a legitimate user password, determine whether it is a legitimate telephone number, these three is the
In order for the client user to be able to upload the file, we must provide a form in the user interface to submit a request to upload the file. Since the uploaded file is a special kind of data, different from other post data, we must set a special
PHP inherits *nix's consistent tradition and fully supports the processing of regular expressions. Formal expressions provide an advanced, but not intuitive, method for string matching and processing. Friends who have used Perl's regular expressions
Character class (square brackets)
The opening parenthesis begins with a description of the character class and ends with square brackets. A separate right parenthesis does not have a special meaning. If a right parenthesis is required as a member of
PHP has a lot of mechanisms, functions, in fact, is the magician, repeated play good, in fact, even simple application, will appear magical effect. Brother Even PHP training
Here is a ob_start () function.
The Ob_start () function is used to open
1, pass any number of function parameters
We're in. NET or Java programming, the number of general function parameters is fixed, but PHP allows you to use any number of parameters. The following example shows you the default parameters for PHP
If you want to use PHP to get the height and width of the image we can directly use the PHP getimagesize function to operate, let me give you a detailed introduction to the GetImageSize function use method.
The getimagesize () function will
PHP is an HTML-embedded language that is a scripting language for embedded HTML documents executed on the server side. PHP has hundreds of basic features that support thousands of extensions. These features are well loaded on the PHP site, but the
PHP applications are often hacked because:
There are too many PHP applications.
It is easy to learn and write.
Bad PHP is also easy to write.
It's that simple. PHP has been popular for years. The more popular PHP is, the more loopholes it finds.
In the development process, the return value type of the function should be deterministic, but PHP is a weakly typed language,
So PHP does not have this kind of syntax verification, because of this, caused a lot of pits.
For example, the following
In the same place
Compilation scripting language: Both Perl and PHP are scripting languages. This means that they do not have to run their own production native executables in advance.
Syntax: PHP's basic syntax is very close to Perl, and both
JS or Jqury How to wait for 10 seconds after the first button click another button to operate?
I make a web-print control because I want to wait for the order to be loaded before it prints, and if the load is not finished he will only print out the
When a dynamic Web page encounters a search engine
Although dynamic Web pages have many advantages over static pages, they touch a big nail in search engine retrieval. No matter any website, especially those marketing-based corporate websites, no
Today with the Curl_init function crawl Sohu Web page, found the collection of Web pages garbled, after analysis found that the original server opened gzip compression function. Just add multiple options to the function curl_setopt curlopt_encoding
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