Nginx PHP page error_page 404 does not work

If a common static file does not exist, the system is returning the specified 404 page, but the PHP page does not work,I checked the configuration.Error_page 404/error.html; No problem at all. It is estimated that FastCGI did not give the error to

Date Format of MSSQL Stored Procedure Called by PHP

Write the stored procedure in MSSQL, where the truncation time is convert (varchar (10), getdate (), and the stored procedure is executed directly. The result is correct.   However, calling the stored procedure through PHP always fails. The final

How PHP converts floating point numbers to Integers

Echo (INT )((0.1+0.7)*10); ?> Let's guess what the result is? Many people will answer 8, and so do I. But if it is wrong, the answer should be 7. For this question, we can find the answer from the PHP manual. Never forcibly convert an

Dede runphp = Yes woven dream if else PHP code

Stealing PHP in dream weavingCodeThe tag is as follows. Note that the output is @ me, so if you need to output anything, assign it to him. {Dede: SQL = 'select * from user order by m_fei DESC limit 0,7'} getone ($ A); $ url = $ arcrow [m_url]; $

PHP solves the problem of Excel file garbled characters exported

There are two main processes for PHP to export an Excel file: 1Define file name 2Fill in Excel Data Some garbled characters may occur during these two processes. The solution is as follows: Fix file name

PHP numeric operation verification code to prevent cracking

/** Verification Code **//** PHP digital operation Verification Code class /** @ copyright note /** original Zhang can ting if you have any questions and ideas can mail (123294587@qq.com) /** this type allows reprinting, copying, and modification.

PHP loop two-dimensional array

PHP code: $ Arr1 = array (100,200,300,400 );$ Arr2 = array ("num" => 100, "name" => "liuxy", "score" => 98 );Print_r ($ arr1 );Echo " ";Print_r ($ arr2 );?> The output result of the above Code is as follows:Array ([0] => 100 [1] => 200 [2] => 300 [3]

Get the IP Source Address in PHP and insert it into the database

The IP source address query function is used in the project. After searching for a free IP address database on the Internet, you can directly use the ip138 website as the data source, you can directly use PHP code to Query IP information, analyze

PHP Bubble sorting and quick sorting

Function bubble_sort ($ array){$ COUNT = count ($ array );If ($ count Return $ array;}For ($ I = 0; $ I For ($ J = $ count-1; $ j> $ I; $ j --){If ($ array [$ J] $ Temp = $ array [$ J];$ Array [$ J] = $ array [$ J-1];$ Array [$ J-1] = $

Analyze the code example for generating HTML files in PHP

Here, we have introduced three methods to generate HTML files in PHP. We hope to help users who need it and improve their understanding of the PHP language. Programmers who learn the PHP language know that PHP is a powerful embedded HTML scripting

PHP unlimited classification method and code

Whether you want to build your own forum, publish messages on your website or write your own CMS program, you will encounter the situation of storing hierarchical data in the database. At the same time, unless you use a database like XML, the tables

PHP interacts with Linux and obtains the root permission

We all know that the default user of Apache is nobody. Some External commands, nobody, can hardly do anything. If you want to get the permission 1: Modify httpd. conf and set User nobody Group nobody Change User xxx Group xxx The xxx here

PhpMyAdmin prompts PHP 5.2 + is required Solution

 PhpMyAdmin prompts PHP 5.2 + is required Solution 02:38:00 | category: phpMyAdmin | Tag: | font size, large, and small subscriptionsInstall phpMyAdmin 3.4.1. After the settings are complete, the following error occurs: PhP 5.2 + is required # PHP-V:

PHP Chinese Character Transcoding

function unicode_encode ($ STR, $ encoding = 'gbk', $ prefix = '& #', $ Postfix = ';') { $ STR = iconv ($ encoding, 'ucs-2', $ Str); $ arrstr = str_split ($ STR, 2 ); $ unistr = ''; for ($ I = 0, $ Len = count ($ arrstr); $ I { $ dec = hexdec

PHP File Download-garbled characters in Chinese file names

$ Hua = $ _ server ['HTTP _ user_agent '];$ Showname = "crocodile head butterfly. jpg ";$ Encode_zh = urlencode ($ showname );$ Encode_zh = str_replace ("+", "% 20", $ encode_zh );$ On_disk = "1.jpg ";$ File = fopen ($ on_disk, "R"); // open the

PHP filters and processes special characters for form submission)

Document directory I. Several PHP functions related to special character processing From: http://www.metsky.com/archives/377.html I. Several PHP functions related to special character processing Function Name Meaning Introduction

Summary of retrieving URLs and physical paths in PHP

Summary of retrieving URLs and physical paths in PHP Here I want to summarize some information about the path where the URL and file in the address bar belong to me: With $ _ server [], we can accomplish many things: it is an array containing

PHP + MSSQL paging source code

// Connect to the database $ Myserver = "192.168.0.123"; // host $ Myuser = "sa"; // User Name $ Mypass = ""; // Password $ Mydb = ""; // MSSQL database name $ S = mssql_connect ($ myserver, $ myuser, $ mypass ); $ D = mssql_select_db ($ mydb, $ S );

PHP cannot connect to database mysql_connect () Error

Install and configure Wamp, Apache 2.2.15 32-bit, php5.3.2 32-bit, and mysql5.5.2 64-bit on win7 64-bit. What is depressing is that all tests are OK, but they cannot connect to the database. At first they thought it was a time zone problem, so they

Install lamp in ubuntu10.4 and enable PHP Extension

I recently studied the Ubuntu system. After installing one or more systems today, the following will be the Chinese language and the installation input method. After everything is done, it is the environment required for installation: Lamp   The

Total Pages: 12780 1 .... 7307 7308 7309 7310 7311 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.