executing in the terminal
sudo a2enmod rewrite
command, the Mod_rewrite module is enabled.
Alternatively, you can open the Mod_rewrite module by connecting the/etc/apache2/mods-available/rewrite.load to the/etc/apache2/mods-enabled/rewrite.load.
Wrote a small thing to record Baidu and Google for the site of the situation, can now query, in fact, there is no difficulty, that is, to file remote files, and then analysis.
On the seemingly check Google PR is just file an address, so said there
Copy CodeThe code is as follows:
$str _sql_read= "SELECT COUNT (*) as Num from userinfo";
$str _sql_del= "Delete from userinfo where id = 1";
$res =link_mysql ("read", $str _sql_read);
$res _del =link_mysql ("delete", $str _sql_del);
echo $res _del.
1, Picture format: The current website Development Common picture format has gif,jpg/jpeg,png ...Difference:gif picture compression rate is high, but can only display 256 colors, may cause the loss of color, can display animation
jpg/jpeg image
Recently I learned from the thinkphp ' Runtime_allinone ' experience: not afraid of caching more, afraid of the call chaos, simply all the common files are merged into a file, not beautiful ...
Copy CodeThe code is as follows:
function
Admittedly, the reason is right, but what I would like to say today is another reason.
We know that PHP is going to determine whether a file is being loaded, it needs to get the file's Opened_path, meaning, for example:
Copy CodeThe code is as
1.php Beginner's Tutorial
Primary tutorial Main Page setup, is Html+js+div+css
2. Intermediate Tutorials
Intermediate words start to touch php, is the PHP core programming and database interaction
3. Advanced Courses
This is mainly the
PHP has several special keywords such as echo, print, die, require, and so on, although they are used as functions, but are actually more like if, while such control statements, rather than a function. In other words, when the interpreter encounters:
Principle:UTF8 file, Microsoft in order to add a recognition information, with the BOM this thing: Bom--byte order mark, the default on the windows and other platforms on the UTF8 file will add 3 bytes of tag information in the head, Our PHP engine
Copy CodeThe code is as follows:
/**
* Get the picture path in the replacement article
* @param string $xstr content
* @param string $keyword Create a file name for the photo
* @param string $oriweb URL
* @return String
*
*/
function replaceimg
As the manual says, the only difference between these two functions is that
Pfsockopenis a continuous connection, and
FsockopenNo.
I wrote a code for a moment:
Copy CodeThe code is as follows:
$data = "1,0,721,73,1,0,0,43290000,0,60D81D509BC00451,3
In many cases, we have been working from a new project to a development, and then looking back carefully at the code we wrote, many of which we used to be skilled code. So, in the completion of each new project, appropriate to do some project
The project catalog is as follows:
1. Place the class that needs to be registered in an array
Copy CodeThe code is as follows:
Final class Utils {
Private Function __construct () {
}
public static function getclasses ($pre _path = '/') {
$classes
Rewritecond, like the IF statement in our program, means that if one or a few conditions are met, the Rewriterule statement immediately below the Rewritecond is executed, which is Rewritecond's most primitive and basic function, for convenience of
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