sign.php
The system is suitable for Win2000
Power by Devchina.com,http://www.2oa.net
$path = "E:serv-uservudaemon.ini";//path of user files
$fabu = "E:web";//Total Web Path
if ($add)
{
$FP 1=fopen ($path, "r+");
$str =fread ($fp 1, FileSize ($path));
Provide a basic tutorial, tell you if you use the Move_uploaded_file function to achieve multi-image upload, of course, you can also implement multi-file upload operation, I hope to help you.
Provide a basic tutorial, tell you if you use the
Another PHP page code has written a lot of PHP paging class before, but today this page program I feel is very good, concise and practical, the code is reasonable and no redundant code, is a good paging class function Oh.
Another PHP tutorial page
The first step, prepare the database. Install the data source (this will cost me several days), first click on the Control Panel
ODBC data Source (32-bit)
, click Enter to select
User DSN (which is actually the default)
, in which you select
For MS
MySQL can be connected to the Web in two ways via PHP, a MySQL-related function via PHP, and an ODBC-related function via PHP
The relevant functions are as follows:
MySQL function
Mysql_affected_rows: Gets the number of columns affected by MySQL
Copy CodeThe code is as follows:
/* Vim:set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------
Name: Weight Calculation
Description: Slightly modified, can also be used for word
My height code is as follows
Include ("conn.php");
if (!empty ($_get[' id ')) {$sql = "SELECT * from news where ' id ' = '". $_get[' id '). "'";$query =mysql_query ($sql);$rs = Mysql_fetch_array ($query);}
The hint is
Function:
1. Get the url,email,image in the content.
2. Replace the url,email,image in the content.
Url:xxx
Email:admin@admin.com
Image
Grep.class.php
Copy CodeThe code is as follows:
/** grep class
* DATE:2013-06-15
* Author:fdipzone
* ver:1
If you need PHP to execute some shell commands to view the results, if the shell output has Chinese, then PHP will get a Chinese return result similar to the "? \230?\180?\187?\229?\138?\168" string. Then this function needs to be translated:
Copy
Double colon:: is considered a scope-qualified operator that is used to specify a different scope level in a class. :: The left represents the scope, and the right represents the access member.
The system defines two scopes, self and parent. Self
Don't say anything, on the code.
Sub_title (
= 50= () ?: (Mb_substr (, 0,, ' Utf-8 '). " ..."View CodeExperiment, feel the following code is a little better, the code is as follows:Sub_title (
= 23
PHP mysql_real_escape_string () function
PHP MySQL functions
Definition and usage
The mysql_real_escape_string () function escapes special characters in strings used in SQL statements.
The following characters are affected:\x00\n\r\ ' "\x1a
If
PHP has a very rich built-in function, many of which we have used, but still have a lot of functions we are not familiar with, but they are very useful. In this article, I've listed some little-known PHP functions that will make your eyes
PHP made a small project, because PHP is an explanatory language, the code can not be protected, it needs to be encrypted. A good tool is Zend Company's Zend Safeguard. Its download address is:
But now this article may contain some expressions, we certainly can not directly extract src Road strength, so if the first is an expression picture, will extract the expression image as the cover, this time we need to write clear regular to exclude
PHP CURL Session COOKIE
You can call system commands, and you can:
Copy CodeThe code is as follows:
function Dirsize ($dir) {
@ $dh = Opendir ($dir);
$size = 0;
while ($file = @readdir ($DH)) {
if ($file! = "." and $file! = "...") {
$path = $dir. "
There is a requirement in the project, that is, decimal into binary, octal, hexadecimal, and binary, octal, hexadecimal to decimal, the following record, later use can be easily picked.
From decimal to other binary conversions, the remainder is
In order to save time later, a class that operates SQL statements is encapsulated today, where it is saved and used later.
File name of this class: SqlTool.class.php
There are mainly DQL and DML two functions
Look at the following source code "
Redis is a key-value storage system. Similar to memcached, it supports storing more value types, including string (string), list (linked list), set (set), and Zset (ordered collection). These data types support Push/pop, Add/remove, and intersection-
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