PHP Header Cache---header parameter description
1. Accept: Tell the Web server what type of media you accept, */* represents any type, type/* represents all subtypes under that type, Type/sub-type.
2. Accept-charset:?? The browser affirms the
PHP Chinese to pinyin function
Just found a very useful function in the blog park, you can turn the Chinese into pinyin, reproduced
{$_q = Ord (substr ($_string, + + $i, 1)), $_p = $_p*256 + $_q-65536; } $_res. = _pinyin ($_p, $_data); }
PHP with OpenOffice conversion csv to PDF garbled, how to solve?
Open OpenOffice selected good code, can complete the conversion, no garbled, but with PHP is garbled, initially determined that there is no encoding, how to set the code in PHP, PHP
How to install GD library
My linux was originally installed PHP 5.3 But it seems that there is no GD library, WordPress, a theme useful to Imagecreatefromjpeg (), there are errors:
Fatal error:call to undefined function imagecreatefromjpeg ()
PHP Basic Learning--__file__ variable gets the directory where the file is located
?
DirName (DirName (__file__)); Get the file on the top of the directory name
such as:E:\PHP\wamp\www\testSource
str_replace (' \ \ ', '/', dirname (__file__))? ;
PHP Understanding two: The difference between include,include_once,require,require_once "turn"
Transferred from: http://registerboy.pixnet.net/blog/post/2426163
?
require () is identical to include () except upon failure it would produce a fatal E_
PHP Learning series Five
1,$_post,$_get,$_request---Super global variablesOne of the $_post,$_get arrays can hold the details of a form variable, which depends on whether the method used to submit the form is POST or get.In addition, all data
PHP xdebug Extension
XDebug is a debugging tool for PHP code, which is very helpful for programmers debugging programs. Many PHP programmer debugging habits use Echo, Print_r (), Var_dump (), printf (), etc., but the code is written well, can run,
Easy Paging Class
This is a simple to use paging class. Just add two sentences to your original program and change them.
Post Code First
paging.php
PHP Code
1, ' prve ' = $page > 1? $page-1:1, ' next ' = $page
You usually have a
localhost and phpMyAdmin cannot access
I have newly installed PHP 5.5,apache 2.2 (httpd 2.2), MySQL 5.5 and phpMyAdmin 3.5.2.2.
My browser address bar input 127.0.0.L will be able to display Apache software Foundation\apache2.2\htdocs below the
PHP Problem Solving
?
PHP Problem Solving:
?
1: String escape function:?
?
?1> insert MySQL database escape function: Mysqli_escape_string ();
? 2>addslashes () using a backslash to reference a string
? ? Description: Returns a String that is
SQL simple and convenient paging technology (original)
$i =10;//page showing 10
if (Isset ($_get[' a '))
$a =$_get[' a '];
Else
$a = 0;
Connection, after selecting the database
$query = "SELECT * from Entries ORDER by date_entered DESC limit $a, $i";
PHP array after deleting elements and re-indexing
Do you know that there is a way to re-index an element after the PHP array is removed?
$tmp = Array (+/-);
unset ($tmp ["1"]);
echo "
";Print_r ($TMP);Operation Result:Array( [0] = 1 [2] =
A question about the array loop
$config [' Menu '] [' member '] [' coption '] = ' search ';
$config [' Menu '] [' member '] [' Sub '][0][' caption ']= ' Baidu ';
$config [' Menu '] [' member '] [' Sub '][0][' url ']= ' http://www.baidu.com
Who has session usage and code to refer to the reference a bit ~ ~ ~ Thank you
Recently learning PHP. I made a small news system .... On the user rights that part of the .... Taught yourself the session. And then wrote a little. Discovery doesn't
Fatal error:smarty error:syntax error:unrecognized Tag
For help, the code is as follows, in template file Login.tpl,
Always error: "Fatal error:smarty error: [In LOGIN.TPL line]: syntax error:unrecognized tag:document.getElementByIdx_x (" code "
EditPlus Configuring PHP
EditPlus This tool to configure PHP
First: About PHP syntax checking
?? 1. Open tools, configure user tools, user tools
?? 2. Add--Application?????? Menu text: PHP syntax checker
???????????????????????? Command: The path
Regular Expressions for PHP hyperlinks!?
http://detail.tmall.com/item.htm?id=18796056163
http://item.taobao.com/item.htm?spm=a220z.1000881.0.82&id=19150004171
http://item.taobao.com/item.htm?id=16181772778
Such links are reserved id= .... Parts,
How does PHP assign the column values of a database table to an array?
[Email Protected]_query ("SELECT * from Db_select")
Or Die ("query statement execution failed!") ");
$cnt =mysql_num_rows ($myquery);
for ($i =0; $i echo "". Mysql_result
Ifarme Jump Browser compatibility issues?
I have a total of three pages, index, top, main brother want to use IFrame to refresh main, but in Firefox, click the link back to pop up a new window, and IE will not, how to set, just back to let Firefox
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