PHP Learning Notes (1)
????? Now we are in a very bad time, all very depressed. Face a lot of choices: go abroad, work ... Department, we are now very confused, we do not know what to do, objective things we can not change, then we can only change
Path problems with PHP files
If it is just php file reference, use DirName (__file__) can be solved.
But if there is HTML code in the referenced file, the URL is not a good location.
Using the methods available online to solve this problem, link
PHP Create level directory, multilevel directory
Uploading files often requires different types of files to be placed in different folders. But because you create a directory in PHP, you can only create one, what does it mean? Take a look at the
PHP memcache Sharing for multi-server session sharing
The use of file-based session access bottlenecks may be in the disk IO operation, so the session to deal with small data volume is not a problem, but if you encounter large data volume of
PHP questions about pseudo-static!
PHP Novice, these days have been due to pseudo-static tangled. On the internet to find a lot of this information, are said to use Apache Rewrite Plus. htaccess can be achieved, I did a few programs to try, it can
What do you say about the pros and cons of Dedecms and phpcms?
Personally feel that dedecms in the code structure and performance is far worse than the phpcms.
------Solution--------------------
No contact with Dedecms/phpcms, listen to the
The difference between M and D functions in thinkphp
Reference Source: http://blog.csdn.net/siren0203/archive/2010/10/29/5974415.aspx
Two have something in common. are used to instantiate objects:
But the two are different when used ...
PHP-Judging characters and string-containing method properties
Here's how to use this:?1. Strstr: Returns a string from the beginning of the judged character to the end, if no return value is included ?The code is as follows:
?
???? /* For
Searching for the optimal calculation method
Finding the best way to calculate arrays is really not going to come out.
I have two arrays, respectively:
PHP Code
$arr 1=array ( array ( ' id ' =>1, ' pos ' =>1 ),
Questions about using Ssh2_exec to modify the user password
I want to change the password of the user name test, the experienced friends see what is wrong? Don't feel good with ssh2_exec, do you have a shell? If so, how should I write??? Thank you,
PHP Class Construction method
The construction method of the PHP class passes the array, which is null. Why???
Class excel{
var $re;
function __construct ($re) {
$this->exc= $re;
}
function Get () {
return $this->re;
}
}
?>
============
Configure EditPlus to run the PHP program directly
Configure the EditPlus so that it runs the PHP program directly.
?
1, 中文版 Edition:
Tools--Preferences tools--User tools
Menu text:p hpCommand:d:\\php\\php.exeArgument: $ (FileName)Initial
[Shocked to] my 2009 years of self-reflection "also known as 10 PHP programmer" PHP Programmer advanced Article
1. First Look at thePHP's Source API functions, for many of the arguments of the Battle of the war laugh over, just stay at the
How to solve a variable's execution
I have a variable that is derived from the complex operation of a custom function and consumes resources more.
I would like to know whether it is only when the variable is to be used to execute, or the page is
Regular expression Extraction Tag attribute value
How to use regular expression is the value of the title "The Amazing Spider-man (2012)"?
I use two times preg_split to take, but feel very inefficient, have a friend to point of thinking?
HTML
Ask the great God to look at this code for creating a problem
PHP Code
"If (!$_post[" Question_num "]) {echo"Create question"; echo "
"; echo ""; echo "
"; echo "Fuck";} else if (!$_post["Question_num"]) {echo "Create question";
Unserialize return False for PHP
description of the problem: The following is the data after I serialized the array, but after being removed, the deserialization is not.$a = ' A:2:{i:1;a:5:{s:8: "Pic_sort"; I:2;s:9: "Pic_check"; B:1;s:10:
CI to index.php
Ci default rewrite URL is similar to this, for example, your CI root directory is under/codeigniter/, your below level two URL is similar to this http://localhost/CodeIgniter/index.php/welcome. Not too good-looking, how to take out
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