----------------------------------------------------------------------------------------------------For example, the following login code:if ($l = @mysql_connect (' localhost ', ' root ', ' 123 ')) or Die (' Database connection failed
When destoon is installed, many friends may encounter an Error message "Internal Server Error", resulting in installation failure. The solution is as follows:
Method 1,Delete the. htaccess file in the root directoryIf not, try method 2;
Method 2:
First, create a file EmptyAction. class. php in ACTION. The Code is as follows:
display ("Public: 404") ;}}?>
To use the apache server, add ErrorDocument 404/404. html to the apache website configuration.
When using the iis server, you must set the
This article describes some methods to summarize how to retain the entered information after PHP fails to submit the form. The most common method is to use the cache method. This method may cause problems if the network speed is slow, the best way
In php5, It is very convenient to read and write xml documents. You can directly use the SimpleXML method of php to quickly parse and generate files in xml format. The following is an example:
There are three methods to create a SimpleXML
There are many methods on the Internet, all of which share the same principle. According to the requirements, I made a version of class files. The main functions are: clear functions, easy to modify, maintain, and expand; English strings: returns
It is a good programming habit to develop the programming habit of writing log files in php programming. programmers should learn this kind of programming idea and should not be too impetuous. Non-rigorous preliminary programming will often lead to
Author: After the PHP 4 class was completed, a snake in the East tried to call JavaBean and tried to call COM. He thought it was very difficult. He wrote an ActiveDll in PHP4 using VB6 and immediately succeeded, it is much more convenient than
1. if a regular expression has never been used before, it may be unfamiliar with this term and concept. However, they are not as novel as you think. Remember how to find files on the hard disk. Are you sure you want to use? And * characters to help
Aside from cookie use sessionPHP, SESSION cannot be transferred across pages. the solution may be that SESSION users who have used SESSION in PHP may encounter such a problem. SESSION variables cannot be transferred across pages. This has plagued me
Based on the needs of many netizens, I have dedicated my online chat on this simulated OICQ! 1. the user must register for login. Save the following field names in the database userinfo. this is the username used for login, and the unique Password
This article is taken from a friend. this is not a precious thing. if you pay attention to the collection, I believe many people will have more comprehensive and better information than this one. but for some reason. these materials have never been
Sometimes, your business may involve the security of PHP applications. When you encounter an audit task, do you know how to perform the search? This series will take you to PHP and help you understand it in a certain program, so that you know what
TinyURL is a Web service that shortens the URL. you can change a long url to a simple URL. Generally, you can create a TinyURL on its homepage, sometimes users automatically generate TinyURL on the client. here we will introduce a method for using
First, let's talk about the principle. A certain camel checked so much information and found that no matter what method is used, the principle is the same. It is to use the program to read the corresponding data to replace the variables in the
After a long time today, we can clearly link to the database, but cannot read data. Google and Baidu finally learned that the reverse return value of the ntext field of mssql read by php is null. we recommend that you change the ntext field to text.
Definition and scope of action: used to test whether a variable has a value (including 0, FALSE, or an empty string, but cannot be NULL), that is, "http: // localhost /? Fo "can also pass detection, so it is not applicable. However, the "http: //
Although the PHP language has already established its own software culture, it is absolutely not difficult to find its own maddening drawbacks. We used to list the twelve worst features that were the most unacceptable to developers in our previous
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