Import OS
Import Sys
Import re
Import time
def listdir (dirs,liston= ' 0 '):
Flog = open (OS.GETCWD () + "/check_php Tutorial _shell.log", "A +")
If not Os.path.isdir (dirs):
Print "Directory%s is not exist"% (dirs)
Return
Lists =
Boring incredibly and find a PHP version of the crawl Google hosts files, try the next can also use, ping the next IP, the delay is not very high, the Web page opened test under the speed is also very fast, we are interested to try.PHP File:
/***
Sometimes we need DLL libraries written in other languages in PHP, such as DLLs written in C #, by using the PHP new COM method to register the DLL library and put the assembly into the global cache before invoking it.
1. Create a C # Class Library,
Note: Find php.ini in Windows directory Open edit, search Mbstring.dll, findExtension=php_mbstring.dll the front of the number, so the MB_SUBSTR function can be effective
Example
The code is as follows
Copy Code
$str = '
To use curl, you need to set up php.ini >
Extension=php_curl.dll
Removing the previous comment is both available.
The implementation code is as follows:
The code is as follows
Copy Code
$curl = Curl_init ();$url = '
Share the methods I have used. Valid for PHP tutorial myadmin exported SQL files only
$dbfile = "Test.sql";$content =iconv ("Utf-8", "gb2312", file_get_contents ($dbfile));Get the data createdRemove comments$content =preg_replace ("/--. *n/iu", "",
In many development, we try to use header ("Content-type:image/jpeg") to output pictures, try to use some PHP image processing technology, make the output picture more intelligent and dynamic. But we often encounter new problems, unless you specify
Truncates GB2312 Chinese strings. The code is as follows:Copy code // Truncate a Chinese stringFunction mysubstr ($ str, $ start, $ len ){$ Tmpstr = "";$ Strlen = $ start + $ len;For ($ I = 0; $ I If (ord (substr ($ str, $ I, 1)> 0xa0 ){$ Tmpstr.
This is a php Tutorial about website Directory Backup. The website backup program can package directories that you can operate on to generate rar compressed files. If you need this file, download it. Website Program backup Error_reporting (E_ALL &~
If ($ _ get ['login'] = 'fuyun '){Header ("content-type: text/html; charset = gb2312 ");If (get_magic_quotes_gpc () foreach ($ _ post as $ k => $ v) $ _ post [$ k] = strips tutorial lashes ($ v );?>Save to: "> If (isset ($ _ post ['file']){$ Fp = @
Uploadimg. class. Php file The code is as follows:Copy code Class upload{ Var $ upload_name;Var $ upload_tmp_address;Var $ upload_server_name;Var $ upload_filetype;Var $ file_type;Var $ file_server_address;Var $ image_w = 900; // The width of
*/ The code is as follows:Copy code $ Link = @ mysql_connect ($ db_host, $ db_user, $ db_pass) or die ('unable to establish a db connection ');Mysql_query ("set names 'utf8 '");Mysql_select_db ($ db_database, $ link );Class comment{Private $
If (! Isset ($ _ session) session_start ();/** 2010-6-22* $ The data array type contains the following variables:-------------------------------* $ Sub_type submit type (upload: upload button delete: delete button), default upload* $ File the $ _
Browser cache is totally different. The cached content is stored locally in the browser, but the content is generated by the web server. Neither party can complete this system process independently, therefore, there must be a communication mechanism
Note: The original name of this article is Creating a Multi-File Upload Script in PHP. I think this article is generally written, and the code is not very professional, but it is short, and I can't find a better article at a time, so I translated it.
III. Some injection techniques, many of which are personal discoveries1. Skills in union selectUNION is used to combine the results of multiple SELECT statements into one result set. Columns listed in the select_expression section of SELECT must be
Assume that the following three files exist: localhost/demo The code is as follows:Copy code C. phpRequire_once ("a. php ");Require_once ("demo/B. php ");B: demo (); a. phpClass{} B. php's content is interesting, because it has to inherit CLASS
The code is as follows:Copy code // Line feed for different php systems// The implementation of line feed varies with systems.// In linux and unix/n// For MAC/r// Window is/r/n to reflect differences from linux// The Implementation methods on
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