I have been doing ASP, recently began to learn PHP. The first work is this mini-forum (also can be called message), although there is no technical content, but think of the 04 just came to the classic forum to learn ASP, start difficult, so I want
Using Convert_tz to convert time zones, you can use
Show variables like ' Time_zone ';
Get the time zone, if you return "system", you can use
Show variables like ' System_time_zone ';
Get the results.
http://www.bkjia.com/PHPjc/318620.html
In fact, this topic very early to say, found many PHP sites in the country have XSS vulnerability. Today by chance to see PHP5 an XSS vulnerability, here a summary. By the way, it is best to use PHP5 's friends to lay patches or upgrade them.
If
Application of MVC pattern in PHP
First, let me give you an example:
A simple article display system
During the simple period, we assume that the article system is read-only, which means that this example will not involve the publication of the
These days too busy, continue to serial haha, fight for half a month to end.
As mentioned above, the unsafe input filtering feature comes from the database, but this function is not available in all databases. There is probably only
OK, then I have a few questions, not the regular, see how I solve.
1. Clear all the tags in the HTML, leaving only hyperlinks.
I use Strip_tags.
Strip_tags ($data, $tags)
The $data is a string, $tags a reserved label.
Strip_tags ($data, ").
A way to put a backdoor in PW's
Data\bbscache\admin_record.php is logged in the background and operation, we see how to operate this file:
admin\admincp.php:
$bbsrecordfile =d_p. " Data/bbscache/admin_record.php ";
if (!file_exists
Author:
Haohappy
Msn:haohappy at MSN.com
blog:http://blog.csdn.net/haohappy2004
2006-07-04
Why do I need
Debugger?Many PHP programmers debug using Echo, Print_r (), Var_dump (), printf () and so on, in fact, for developers with a richer
Put
[Url]http://wwww.aaaaaaaaa.com/bbb.php?id=888[/url]
To the address format instead of
[Url]http://wwww.aaaaaaaaa.com/888.htm[/url]
Or
[Url]http://wwww.aaaaaaaaa.com/yourname/888.htm[/url]
Of course, you can change according to your
A: Select the Chinese font, if you have installed Ya-black font, but can not be called. You can open the installation directory under \intype\user\preferences.itconfig, font_name: ' Microsoft Ya Black '
Q: Unable to quickly enter the code
A:
Main functions:
1. Almost all program code highlighting is supported, including the following languages: Actionscript, ADA, Apache Log, AppleScript, ASM, ASP, AutoIT, Backus-naur form, Bash, Blitzbasic , C, C for Macs, C #, C + +, CAD DCL, Cadlisp,
Just tune program, originally on the server good program to win under incredibly error.
Later the careful mode to find is set_include_path problem.
Under win, when you want to include multiple paths, you use ";" to separate it, but use ":" Separated
1, the origin of the template
In the absence of template technology, the use of PHP development programs, usually PHP code and HTML mixed together. For example, a news list, which is probably a newslist.php page, is structured as follows:
read out
Support multiple encoding of Chinese string intercept function!
Copy CodeThe code is as follows:
/*
* @todo Chinese intercept, support GB2312,GBK,UTF-8,BIG5
*
* @param string $str the string to intercept
* @param int $start intercept start position
Get the current script URL
function Getcururl () {
if (!empty ($_server["Request_uri")) {
$scriptName = $_server["Request_uri"];
$nowurl = $scriptName;
}else{
$scriptName = $_server["Php_self"];
if (Empty ($_server["query_string"])) $nowurl =
/*
Function written by Nelson Neoh @3/2004.
For the those who wants to utilize this code, please do not remove the this remark.
If you had done a enhancement to this code, please post the copy at Http://www.dev-club.com PHP board. Thank.
Function
Converts a binary representation of a number to hexadecimal
String Bin2Hex (String tring)
Remove space at the end of a string
String RTrim (String string)
Aliases for RTrim
String Chop (String string)
Remove spaces from both ends of a
Today, my friend asked me if the answer to Discuz safety question could be spared. Or cracked, I have been aware of a password, only remember very short, thought is substr take MD5, finally looked at the source of half a day, is really MD5
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