Sometimes you need a feature in your project: After querying the data in the database, save it in a CSV file. Then download to the client. Development ideas:
First, the need to query the data from the database query out;
Write the data that needs
For many people, configuring nginx+php is no different than searching for a tutorial and then copying and pasting. It seems that there is no problem, unfortunately in fact, a lot of information on the network itself in disrepair, flawed, if everyone
We often run into the compiler after the installation of PHP and then remembered to add an extension, the last time our company's PHP encountered a situation like this, We upgraded PHP from 5.3.3 to 5.6.8, and then recompile, 5.6.8 installation is
That problem just didn't work out. I did an experiment with a short example.
I read on the Internet that the following code will not be submitted in the past why did I try to submit the past?
I changed the onsubmit of the form directly to "return
For example, this table dropdowns is like this.
Add button, click to load
After submission, the post is sent as: Title form URL Form1 url1 Form2 url2
in PHP
num = value obtained by increasing the
Long time no Update blog ... In fact, is too lazy more ~ not to mention do not know what to write ... These days are looking for a job and worry, think about running around, don't want to move ... (lazy) But fortunately, I rented a room, do not
Directly on the code
Public Function Delpath ($path) { if ($handle =opendir ($path)) {while (false!== ($file =readdir ($handle))) { if ($file! = "." && $file! = "...") { @unlink (
A B c three tablesA data sheetb for Condition set table BID B1 B2 B3 four fieldsC for User table CID UID fieldsStatistics a table conforms to 3 conditions A1 A2 A3 Three conditions, these three conditions are statistical user data derived conditions.
In a PHP call Window.location.href jump after the jump in the page after the session failure can not be used, how to solve
Reply to discussion (solution)
Jump to where?Your code
Jump to where?Your code
$url = "main.php";
if (Isset ($_post[' Pass ')) & Isset ($_post[' name ') & @MD5 ($_post[' pass ')] = = "Admin" & @$_post[' name ']== " Admin ")
In this sentence, why do I enter the user name admin and password Admin at the front end always go in?
if (Isset
I have two tables, table A is a commodity table, table B is the message table is the user's comments on the product,
A table ID (self-increment ID) name (product name) money (commodity price) B table ID (self-increment ID) content (message content)
Line 51:
Line 51:
These common measures can give Apache Server a basic security operating environment, obviously in the implementation of the further refinement of the decomposition, to develop a practical application of the
1, Laravel realization of production environment and development environment configuration separation
Usually we will put the configuration file required parameters in the directory below/config, all the files under this folder will be loaded
' Shia ', ' age ' =>20); $jsonencode = Json_encode ($arr); Echo $jsonencode; >The results of the program run as follows:
Iconv (' gb2312′, ' utf-8′, ' here is the Chinese title '), ' body ' = ' abcd ... '); Echo Json_encode ($array);? >The
This is no good nonsense;
The first is to use the Mt_rand () function to generate a specified number of random numbers;
Then use the Array_unique () function to go heavy;
Because go heavy, so get the number is not enough to specify the number of;
My VPS server is windows+iis6+php5.3.13+mysql5.1.61, after the installation of the front desk display normal, can enter the admin.php background always appear the following garbled:
Heard that php5.3 to encrypt the file needs Zend Guard Loader
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