If (get_magic_quotes_gpc () = 1 ){?> MySQL common query Program Note that in this program, magic_quotes_gpc in the PHP configuration file (PHP3 is php3.ini and PHP4 is php. ini)Set it to Off or 0. Restart Apache after modification.Exit
Copyright can be hidden in css. the file cannot be deleted because it is ZEND, and it is not recommended to delete the file.1. How to hide the copyright under the X-Space personal SpaceModify/css/space.css and find the following code:/* Footer */#
[1] The get and post variables cannot be passed between pages. In the latest PHP version, automatic global variables are disabled, therefore, to obtain the submitted variables from the previous page, use $ _ GET ['foo'], $ _ POST ['foo'], $ _
The Smarty technology is the essence of PHP. With the gradual improvement of PHP version, many of the original methods may be too outdated. Next I will talk about how to configure the latest PHP5.1.1 version.The following is a step by step. Please
Record the process for your reference only.I. Where can I obtain PHP?Open the PHP official website download page: http://www.php.net/downloads.phpSelect "PHP 5.2.0 installer [18,879 Kb]-02 Nov 2006" to download2. PHP5 Installation ProcessOpen the
The template seems to be the only option to quickly write code using PHP. But should a PHPer stick to the template, discard the template, or use its own template?The following are all PHPer ideas:"The most important thing about template is to suit
CURL is essential for home travel. Why is it so described? It is because of its ease of use that it can easily capture pages, simulate logon collection, and other functions.Remember that the first time you contact CURL, you must capture the list of
The server does not support the full version of adodb,I almost wrote a class myself to implement the adodb function, so that I don't need to change my program.But now I use adodb-lite, which is a simplified version. It's
Php downloads files, such as txt files.The result is that the browser's built-in download box is displayed, and the Save As operation is displayed. Sometimes memory overflow and timeout may occur.If timeout occurs, SetSet_time_limit (0 );Memory
The content of index. php In the main file is as follows:Copy codeThe Code is as follows: Require ('./global. php ');Require ('./smarty/libs/Smarty. class. php ');Require ('./mysql. php ');Require ('./FCKeditor/fckeditor. php ');$ Action = $ _
Php two-dimensional array sorting function, which is a natural sorting by default, that is, sort sorting. You can specify multiple methods to sort values by values in a two-dimensional array. For more information, see the program annotations
There are two paging query methods in mysql. One is the COUNT (*) method. The specific code is as follows:Copy codeThe Code is as follows:Select count (*) FROM foo WHERE B = 1;SELECT a FROM foo WHERE B = 1 LIMIT 100,10;Another method is to use SQL
1, this
1. to use this, you must be in a situation like this. Otherwise, it will report an error: Fatal error: Using $ this when not in object context.2. this can call methods and attributes in this class, or call methods and attributes that can be
In fact, it is also relatively simple, on the Code:Copy codeThe Code is as follows:$ Url = 'HTTP: // 127.0.0.1/test. php'; // The Link pointed to by POST$ Data = array ('Access _ token' => 'thekeyvalue');$ Json_data = postData ($ url, $ data );$
Modify: config. inc. php
Add
$ Ip_prefix = '2017. 192. 168 .';If (substr ($ _ SERVER ['remote _ ADDR '], 0, strlen ($ ip_prefix ))! = $ Ip_prefix) die ('illegal access error ');
The ip address can be set to the ip address of your computer. For
Processing of js returned data by php json_decodeAfter php json_decode, the data returned to the front-end is: encode_str = "{" green ": 10," size ": 5," strock ": 12}Then js uses eval ("obj =" + encode_str + ";");Json data can be instantiated as an
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