Today in the process of doing a hint deprecated:function set_magic_quotes_runtime () is deprecated, later on-line search to know, because the PHP 5.3 later version does not support this function.
Solutions
function Set_magic_quotes_runtime ()
Today after upgrading PHP to run a page appears deprecated:function set_magic_quotes_runtime () is deprecated in f:\\wwwroot\\mongodb\\manage\\ App.php on the line 13 error, later Baidu had to know the reason for the high version of PHP
Note: If the fatal error:call to undefined function Mb_strlen appears with Mb_strlen, you can use info () to see if there is no load mbstring, if not, try to Php_ Mbstring.dll Copy to the%windows% directory
File Encoding Utf-8
$var = ' Chinese
The Utf8_encode () function encodes the iso-8859-1 string as Utf-8.
Utf8_encode (string);*/$str = "Hello, world!" "; Defining strings$result =utf8_decode ($STR); Encode the conversionecho $result; Output conversion Results
Example Two
/*The
Appear phpmyadmin can not log in is I modified my MySQL server password after the cause, and then Baidu has related reasons, originally modified the mysql password we also need in the phpMyAdmin directory to modify the contents of
The simplest way to use PHP's own function to achieve the array_flip effect, and another way is to use PHP's Array_flip function to indirectly achieve the effect of the weight
Array_flip is a function that reverses array keys and values, and he has
PHP in the header and Session_Start can not have the reason for output, the following analysis to everyone to see.
In HTTP transmission text, it is required that the header and content order must be: the header is behind the previous content, and
Ajax how to pass Chinese parameter garbled solution for some reason Ajax default is uft-8 encoding, then we use a GBK is prone to garbled problem, the following we will tell you the PHP Ajax garbled solution.
Ajax how to pass Chinese parameter
Here is a simple introduction to the PHP solution input multiple spaces only show one problem, we use CHR (32) to replace the HTML space, the need for friends can refer to.
The code is as follows
Copy Code
if
FCKeditor Editor is a foreigner out of the Chinese language support is not good, if we directly use the Chinese file name will be wrong, or upload a picture failed, let me introduce the solution.
Here are the 2 ways to change.
Method One,
THINKPHP3.0 after uploading a file thumbnails can not be saved to subdirectories, because UploadFile.class.php this upload class Getsubname () function can only create subdirectories of the original image and not create a thumbnail of the
Dedecms php.ini register_globals must is OFF
Way to go directly to the include/common.inc.php tutorial will----Prohibit Session.auto_startif (Ini_get (' Session.auto_start ')! = 0){Exit (' php.ini Session.auto_start must is 0! ');}----Delete.========
Ask a CSS question.
Answer
DIV1 and DIV2 within the DIV3.
At first I did not define anything for DIV2, its width is 100%, in the interior of the DIV3.
DIV2 only defines Float:left, and its width is adaptive, as it is now, but its layout is
Q: Why did I click the Back button of my browser and all the fields were emptied?
Answer: This is because you used the Session_Start function in your form submission page. This function forces the current page to not be cached. The workaround is to
Problem Analysis: When the client connects to the Apache server, Apache will generally return the server version, non-default modules and other information, such as:
server:apache/1.3.26 (Unix) mod_perl/1.26
Solve:
You can make the following
PHP provides a minimal use of the Similar_text function, but this function is useful for comparing two strings and returning a percentage of a similar degree
The code is as follows
Copy Code
Similar_text ($string 1,
Warning:session_start () [Function.session-start]: Open_basedir restriction in effect. File workaround
Warning:include () [function.include]: Open_basedir restriction in effect. File (/www/webpublic_html/admin/inc/inc.php tutorial) is not within
A few days ago sent a post, is about showing 5 days of this date comparison,
http://www.oso.com.cn/forum/read.php?theme_id=7459
The main argument is to focus on the select something from table
WHERE To_days (now ())-To_days (date_col) The To_days
If the forum is not the only mailbox too many, and can not be modified, can only be resolved through the program, to prevent the correction of the password when the error. The specific changes are as follows:
Found it:
$ucresult =
Method 1: According to the official manual, if the Safe mode setting of the PHP tutorial is too harsh, this situation occurs: Even though the file is real, it is mistakenly reported that the file does not exist.
Because the server side of the
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