[Teaching] PHP's header function

php's header function This file type is declared functions such as header ("content-type: text / html; charset=UTF-8"); is a declared file type is text / html format and UTF8 encoded as a declaration With this declaration can tell the browser what should be made here actions such as output picture y......

detail

[PHP teaching] decimal rounding up ceil

Sometimes encounter requires rounding up decimal rounded case Programs such as the page jump 2.2 is the need to show three This time it can use ceil function to help make this a thing echo ceil (3.3) / / 4 echo ceil (0.2) / / 1 echo ceil (-5.2) / / 5 So...

detail

[PHP teaching] displays an error

Sometimes the PHP in PHP ini configuration file is not open display error But sometimes will still need to check the status of the error message You can use ini_set ("display_errors", "On"); / / display error if open (On = On, Off = Off) error_reporting (E_ALL & ~ E_NOTICE)......

detail

Blogs opened Hello!!

Blogs opened Hello !! This is my joomla3 website I am also engaged in the development joomla3 element There joomla3 can discuss questions about Oh Thank you!...

detail

PHP function -ceil

Told you about a nice php function Called ceil In fact, his function is very simple int ceil(float number); float number=Floating-point functions Example 1 echo ceil(3.5); Displays4 Example 2 echo ceil(3.0); Displays3 Is the value if there is a decimal Then +1 This function is used in very good wit......

detail

[PHP] substr cutting Chinese characters problem

substr cutting Chinese characters problemCutting is one of the characters using substr very common PHP syntaxBut itBecause in the next UTF-8 encoding,Text in a word for three yuan group, so cut the first four yuan Group will print error code characters So now tell youmb_substrThis functionThis func......

detail

Setting MYSQL link coding

Setting MYSQL link codingYou can use the following ways mysql_query("SET character_set_client='big5'"); Setting client code mysql_query("SET character_set_connection='utf8'"); Set the encoding when writing mysql_query("SET character_set_results='big5'"); Setting the output encoding Can be used in a......

detail

PHP MYSQL Tutorial - Link Database

MYSQL Tutorial Link Database $db=mysql_connect('exp.com.tw:3306','mysql_account','mysql_password'); "exp.com.tw:3306"To link location and PORT number is usually PORT number can not be set MYSQL preset listening PORT No. 3306 'mysql_account'The user account for MYSQL 'mysql_password'User password for......

detail

Message Board

Feel free to leave suggestions and share! Thanksgiving!

comments powered by Disqus