Always wanted to use Phpexcel, this time the project met. But the pit also came out. Phpexcel's autoloader.php inside.
public static function Register () { /* if (function_exists (' __autoload ')) { // Register any existing Autoloader
cookie+ the Custom Function!!!
Achieve a simple welcome effect:
XX Mulberry, this is your nth time to visit yo
Note that there is no output before setcookie. The Setcookie has 6 parameters, the first one is necessary, the first string
Once the simple study of PHP, read "PHP and MySQL Web development", as well as the help of a universal search engine. This preparation system to learn a bit, reference is PHP Manual.
What PHP can do
PHP is primarily used for server-side scripting,
Five practical tips for optimizing PHP performance:
The following are five optimization techniques, which are very helpful for development after mastery.
1. Use single quotation marks for strings
The PHP engine allows the use of single and
Send JSON file
Request File
category.php
Corresponding tables in the database
JSON results
Data results in front of many inexplicable don't know where the table data "expression"
What do we do?
Reply to
This is the fifth article I wrote in PHP pattern design. The previous four articles in the continuous learning to deepen the understanding, to today again look at the Observer model, feel very easy to understand. This may be the result of our
"; $this->start = Microtime (True); } Public Function test () { echo ' in Test ()"; throw new Exception ("error", 500); Throw exception } public function __destruct () { echo ' __destruct"; }}
When deploying a CMS project to the server, because the CMS template is older, the server with PHP is 5.3.3 version (more than 5.3, can be considered new), some pages will display the "Deprecated" category error message. To suppress the error
$arr = Array (' a ', ' B ', ' C '), Array (' C ', ' F '), Array (' g ', ' Z '), array ( ' x ', ' Y '));//$ Arr subset element length may be more//$arr subset element with $arr other subset element 22 combination or 3344 combination//subset
JSON file has multiple 0.json 1.json 2.json 3.json ...
Now the case is that JS can read the contents of the JSON file, but each time the new file is read the contents of the file is gone, I want to load the contents of the new JSON file, keep the
Class Test {Public $a, $b;p ublic function __construct ($a, $b) {$this->a= $a; $this->b= $b;} Public function set ($var, $val) {$this-$var. = $val; return $this;} Public function Get () {echo $this->a. '-'. $this->b;}} Class Test2 {public $obj;p
All 4 have the meaning of the containing file, but the include () and include_once () will continue to execute when there is an error in the include file, while require () and require_once () will not, in addition include_once () and Require_ Once ()
Objective
Originally asked to use a third-party landing, so think first with GitHub test successfully re-use test, but recently dragged for a long time have not applied for a good open platform AppID, so just write GitHub third party landing it,
There is a 20,000 data source, and now the output of another data table (remote API) value, because the data volume is too large, is often disconnected by the remote server or 500 internal error on this page, ask the master, what can be optimized,
1. Add "/....../" to both sides of the delimiter and use "#......#"
2. Atoms visible Atoms & smallest units of invisible atoms
Visible atoms: Characters that can be seen with the naked eye
Invisible atoms: atoms that are invisible to the naked
. NET does the WCF interface, deploying IIS on Access is possible
I use the PHP soap call test, whether it can pass, it is also possible:
Header (' Content-type:text/plain ');
$client = new SoapClient ('
310
1,000.00
2,000
The above three data, write to the database is 310,1,2, what is the correct way to write to the database ~
Reply to discussion (solution)
Know how to do the thousand points, have not seen how to cancel the thousand-bit,
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