A PHP exception handler
A PHP exception handler, the function is simple when a major error occurs, write logs and user friendly prompt.Code:
'." [SHUTDOWN] lvl: ". $lasterror [' type ']. " | Msg: ". $lasterror [' message ']. " | File: ".
Questions about installing an integrated environment
System Win8 64-bit seemingly unable to install Apache
Phpnoew Unable to install properly, reported the following error, the computer did not install Apache, but have installed MySQL
thinkphp URL Rewrite problem example detailed
In the process of using thinkphp, it is often necessary to remove the index.php in the URL path, because it is really awkward. The desired result is to remove the index.php from the URL path.
First,
PHP Array Looping problem
$a is an array
while () {//loop, $a values are displayed
$a =1,2,3,4,5,6,7,8,9,10
}
$a = 10//After jumping out of the loop, $=10
Now I want to be able to still get these 10 numbers out of the while loop.
I'm writing out
This is how to write it out to ask for the great God's advice
This is usually the two parties agreed to a key, and then MD5 to pass the past verification
Cases:
Sender:
$key = ' 123456789 ';//agreed and kept confidential by both parties
$time = time
JS inside the reference to the data returned by PHP, why not update it yourself?
The following code, is JS inside to do a timer, PHP in the database to retrieve the latest value assigned to JS inside the variable ads after the pop-up, and then every
thinkphp File upload distinction?
Form upload when there are representative pictures and upload attachments two options, upload success, $info = $upload->getuploadfileinfo (); How to distinguish them to save, two all upload no problem, just upload
Novice ask questions about configuring the source environment
I downloaded the WAMP environment, and then downloaded the PHP micro-blog from the internet source, there are mysql.sql files, this file contains the creation of databases and tables of
A little problem with thinkphp
The admin in this:: In which file is defined?
------Solution--------------------
From the writing point of view, the admin should be a class. The U method is his method of fetching the URL believe you should
No refresh upload file
Use PHP to make a feature that allows you to insert a picture when you post a message like most forums. Online check, input type= ' file ' is written in
In the form, when the form is submitted, the page updates automatically,
Novice ask a question about the class properties
Class mycla{ Public $attr 1;}$a = new Mycla ();$a-attr2 = "123";echo $a-attr2;
ATTR2 is not defined in the class, but I found that after this run, the program output 123, no warning, what this
After the submission of information on the site space error, how to resolve.
Error message:
The space shows the CPU and the maximum number of connections are full:
Require ' conn.inc.php ';function Insert ($sql, $adds = ' add success ',
Novice Questions for PHP variables
/**The realization of *java*/public class test{ Public final static String company_name= "xxxx Company";//Company Name}Other places want to use company name can be quoted by Test.company_nameHow does PHP
Different path cookie with same name
A project that uses multiple cookies to jointly determine the user state
The background is as follows
UserID Usercode username
Three cookies, if they exist, determine if there is a session or delete the cookie
Number of times SQL queries duplicate values
A table mark
ID Name pay
1 Sheets 31,000
2 Wang Lei 1200
3 Sheets 35,853
4 Wang 58,574
5 Tall 1259
6 Tall 985
===================
How to query the Name field duplicate values, do not know how to write
New rookie to test the PHP site, looking for free tools
Do not like LoadRunner, too expensive, first not to talk about the crack.
A friend recommended Jenkins Redmine
Feel not to install
See there are seven
Can I call Discuz's password? Great God help to see.
The site has a discuz forum, the site (in addition to the forum) also made a separate
user registration and login page .
The function I want to implement is that this stand-alone
user
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