Use sock technology to send email without server support. Fast speed!!
Copy CodeThe code is as follows:
function Send_mail ($to, $subject, $body)
{
SMTP information can be modified to your,//////////
$loc _host = "Longbill"; The name of the
After the efforts Pie3d finished, good things to share with you. But the younger brother is a novice PHP, the code may not be refined, I hope that everyone to improve the program together. Remember to call me (estorm@yeah.net)
+----------------------
PHP datetime function Date ()
1, year-month-day
Copy CodeThe code is as follows:
echo Date (' y-m-j ');
2007-02-6
echo Date (' y-n-j ');
07-2-6
Uppercase Y represents the year four digits, while lowercase y represents the two digits of the year;
Output the information page about PHP and current instructions
int phpinfo (void)
Returns the current PHP version number
String phpversion (void)
Print out a list of people who contributed to this PHP project
String phpcredits (void)
You can turn
First, directory operations
The first is the function that reads from the directory, Opendir (), Readdir (), Closedir (), which is used when the file handle is opened, and then the iteration is listed:
Copy CodeThe code is as follows:
$base _dir= "
Brief introduction:
Blitz templates is a fast PHP template engine developed in C language, which is an extension of PHP functionality. It started as a php_templates replacement, but developed to more work. It is based on extensible template
Copy CodeThe code is as follows:
/* Author:yang Yu
*/
Want to see what ebook, first go to Sina study Search, and then fill in the corresponding parameters can
http://vip.book.sina.com.cn/
ebook Parameters
$array _book[0] = 38884; Fiction ID
One post learn PHPSystem length 32678 bytes, remove punctuation, also can play 10,000 words, if write full, that is not short.
In the spirit, perverted simple, smooth in the end of the MJJ for the vast number of impetuous to browse the principle, I
For example, the current file is placed under (d:\www\), the file name is test.php.
The code for the test is as follows:
Copy CodeThe code is as follows:
Echo __file__; Get the absolute address of the current file, result: D:\www\test.php
echo
Demand:
1 The code on SVN has a set of local (editor UltraEdit), a set on the development machine (CentOS), need local code modification to upload to the development machine
2 is not modified and used directly on the development machine because
Adminconfig.php This is the configuration of all file permissions in the background system.
Fun.php This is a function function
left.php Web site background based on the user login ID to load the corresponding function menu
op.php calling
Today a client's server is frequently written:
mm.php
The contents are:
Copy CodeThe code is as follows:
Finally find the first behavior in a file in the following code:
Copy CodeThe code is as follows:
Fputs (fopen (Base64_decode ("BW0UCGHW")
1. String comparisonsIn PHP, you can compare strings with = = (double equals) or = = = (three equals). The difference between the two is that the double equals is not a comparison type, the three equals is the comparison type, it does not convert
Author: Spider
I'm going to have a little php pony too.
Copy CodeThe code is as follows:
Header ("content-type:text/html; charset=gb2312 ");
if (GET_MAGIC_QUOTES_GPC ()) foreach ($_post as $k = $v) $_post[$k] = stripslashes ($v);
?>
if (! (
Main three attributes of an object
Object behavior: You can apply those actions to objects, turn on the lights, turn off the lights is the behavior.
The shape of the object: When applying those methods is how the object responds, color, size, shape.
The following are the core files:
index.php file
Copy CodeThe code is as follows:
Header (' content-type:text/html charset:utf-8 ');
Date_default_timezone_set (' PRC ');
$rootDir = ' listfile '; Site root, load all files of this program
Site
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