Online and provide download database design documentation$dbserver = "192.168.128.190:42578"; $dbusername = "root"; $dbpassword = "root"; $database = "Eke" ;Database address: Remember to add portGet all the tables below the library, and the
Set error_reporting (e_error) in the PHP file or PHP. ini );
Error_reporting can set the following parameters:
The error report is a bit field. You can add up the numbers to get the expected error report level.E_all-all errors and warnings
Otherwise it will be garbled.'G2 H5 G $ C I6 Z $ Y1 R9 C$ S 'c8 T (m) E6 w6 I & E + RThere is a function in the PHP function library: iconv ()
Usage:
$ Text = iconv ("UTF-8", "gb2312", $ text );
It's easy. In turn, to replace gb2312 with UTF-8
$
To determine whether a webpage exists in PHP, the simple method is fopen/file_get_contents .. wait, there are a bunch of methods that can be done, but these methods will pull the entire page of HTML back, it will be a little slow to judge a lot of
Post call $ Url = 'HTTP: // XX /'; // The page to be submitted // The following section lists the data to be submitted. $ post_data ['email '] = $ _ post ['email']; $ post_data ['Password'] = $ _ post ['Password']; echo get_postdata ($ URL, $
Method 1:If there is a form like this:[Code]
[/Code]You can get the content of the test input box through: $ _ post ['test']. Here, test is the name of input.If you enter ABC in the file box to submit, $ _ post ['test'] = ABC;Method 2:Use PHP: //
Many people on the Internet have provided answers: Modify session. gc_maxlifetime in the PHP configuration file. If you want to learn more about the session collection mechanism, continue to read. (Php5.2 in this article)
Summary: Each PHP request
Ezpdo also supports transaction processing, which supports automatic transaction rollback and manual rollback.
First, let's take a look at the automatically rolled back transactions.
// Obtain the ezpdo Manager$ M = epmanager: instance ();
$ OS = $
EXT is used to interact with PHP. Ext sends JSON data to PhP, but $ _ post cannot be obtained in PHP, and $ _ request cannot be obtained, however, the request information shown through firedebug does post JSON data to PhP. What is the situation?I
When using Apache to upload files using the PHP file function, the allowable file size is affected by the system configuration. Generally, You need to modify PHP. ini:
Extension or cancellation of execution time limit:
Max_execution_time is 30
Cannot send session cache limiter-headers already sentThe error is caused by an output before session_start () is called.
1. ignore warningError_reporting (e_all ^ e_warning );Session_start ();Certainly not desirable, because it will cause a larger
Use the array $ post_data to represent post data, and then use the following function. It is very simple, but very practical;$ URL is the URL address you want to submit;$ Referrer is the previous history page on your browser page.If there is a port
I need a way to regularly execute PHP scripts on the website every day. PHP itself does not provide such a function, so I found three methods on the Internet to implement PHP scheduled tasks ".
FirstUse some operating system commands, such as Linux "
Procedure:This problem seems simple, but it is a bit difficult to do. I implemented it in a less intelligent way:1. Replace existing keyword links with text2. Sort keywords from long to short3. Replace the long-to-short keyword with the link, and
Recently, I used php as a project and used post to submit data. There are sessions in it for record. It is okay to run it, but there is a small problem, after the submission, the page will expire when you want to return to the previous page. You
PHP 4 introduces the foreach structure, which is similar to Perl and other languages. This is just a simple way to traverse arrays. Foreach can only be used for arrays. An error occurs when you try to use it for another data type or an uninitialized
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