Does a website need to consider security issues when it is developed?
Server security is not just a good upload, form dangerous string filter it? XSS SQL
Reply to discussion (solution)
XSS SQL injection cross-domain attack special
When the actual power consumption in the first level of the power base range, ladder tariff = basic electricity price x actual electricity consumption;
When the actual power consumption is between the second-level power base range, the ladder tariff
In order to improve the loading speed of the page, as well as reduce traffic, to the site of the picture to thin body, research a lot of solutions, and finally determined the use of ImageMagick, understand the software, really unsanitary environment,
The Information submission page can only submit the upper part to the database. Consultation over Niang no fruit, check code no fruit. Special to ask the big guys. The following code.
Reply to discussion (solution)
The last side of
Connection to localhost has been interrupted how to solve Ah, other programs are good, on the Empire backup King This program, an open is the problem (it is also good, do not know why this has happened)
The connection to localhost has been
Ubuntu 14 operating system, pear installed successfully. But execute pear install db-1.7.14.tgz times wrong:
root@von239723900:/var/www/html# Pear Install db-1.7.14.tgz
Could not extract the package.xml file from "db-1.7.14.tgz"
Install failed
Recently in a PHP socket-based chat program, but encountered a problem:
The open WS port can only open the port in PHP server.php under CMD, and cannot close the CMD command Line window, and once it is closed, the socket connection is
The duration of the MSSQL database is: 2013-06-28 00:00:00
PHP input format is: 12:00AM
I used the method: Date ("Y-m-d Day", Strtotime ($rs 1[' DJRQ ')) Description: $rs 1[' djrq '] = 12:00AM
The result is: 1970-01-01
I want the format is: 2
How to use PHP, dynamically truncate the string "1|10,2|11,3|12" in the section between the | and, number, including |?
Reply to discussion (solution)
Str_replace (",", "", "Str_replace (" | "," ", $val)) can be replaced
$s = "1|10,2|11,3|12
My little brother is doing this project based on the YII framework, one of the functions of uploading files, I am using xupload this plug-in implementation.
When a user uploads a file, the script creates a new folder at the root of the target server
My TXT file data.txt format is as follows, separated by | Two fields, one is the device number, and the other is the state
A201| is being maintained.
A202| has been completed.
A203| is being maintained.
b201| equipment has been broken, waiting for
$question):?>
$answer):?>
How to allow the value of $i to start at 0 instead of the value of the last loop after the second inner loop after the inner loop is completed
Reply to discussion (solution)
I don't understand what you
I used to write PHP code under win, and then put it on Linux to run (development environment WAMPP, run environment LAMP/LNMP), but many times to see the recruitment information to recruit PHP programmers are talking about being able to develop PHP
is to be able to specify a streaming media server, the page can be played on the streaming server audio data sent over.
Like the Watercress FM.
Want to ask what aspect of PHP function and this related or consult what information?
greatly
There is an array, possibly multidimensional, with some values with special symbols such as "I escaped with recursion plus addslashes ()
It's not working, help, see what's wrong.
$arr =array (' II ', array (' one ' = ' "EC" ', ' =>5 '));
Function
SetLocale (Lc_all, ' ZH_CN ') has been set, but sometimes it is not possible to read the Chinese in the CSV file, why? It seems to be related to the system system!
Reply to discussion (solution)
Document encoding and system coding are 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