php--the function of the following class is very powerful, not only can send HTML-formatted mail, you can also send attachments
Class Email {
---setting global variables
var $mailTo = ""; Recipient
var $mailCC = ""; Cc
var $mailBCC = ""; Secret
It is no problem to use file_exists to check whether a file or directory exists under normal circumstances, but be aware that one is Safe mode and the directory does not have execute permission, it will return false oh.
Let's take a look at the
This is a problem of their own, this morning in the development of things with an EC found that the installation of Ecshop when the administrator account failed to create, see the solution below.
Modified the install/includes/lib_installer.php 411
PHP to determine whether a file exists PHP to determine the existence of a file is actually very simple, only need a function: file_exists (file path), with this function is generally used to determine whether the file exists, and then operation,
PHP Login Code This is an example of a compiled PHP login code Oh, he from the database to the HTML and PHP program, the entire process is written step by step, is a very good entry-level login PHP code.
PHP Tutorial Login CodeThis is an example of
PHP in the session often there are some very strange problems, many of these are small details of things, for PHP beginners may be difficult to find out what is the reason, today we have almost all the session caused by the problem and the
Include is a function in PHP to call a file, by default it can not be directly like include (a.php?id=1) operation, let me introduce the solution include can not take parameters to call the solution.
Sometimes it is necessary to use the include ()
It's simple.
1. First put
Add to Header.html page
2. Add the Regionss () function to the/include/tag.php
3. Create a regions.php file in the root directory of your website
4. Add {$REGIONSS (PRC)} to the appropriate place in your template
Note:
PHP connection MySQL database garbled is usually the Chinese characters will be there, the English will not appear, because the MySQL default connection for UTF8, if your page and database encoding is not uniform, it is possible
Share an article about the details of the cookie and session differences, a friend who needs to refer to a valuable article. Cookies are often used to identify users. A cookie is a small file that the server leaves on the user's computer. Whenever
Class HTML
{
var $dir; Dir for the htmls (without/)
var $rootdir; Root of HTML files (without/): HTML
var $name; HTML file storage Path
var $dirname; The specified folder name
var $url; Gets the source page address of the HTML file information
var
FastCGI Error Error Number:5 (0x80070005) solution There is a need for friends to refer to.
FastCGI ErrorThe FastCGI Handler was unable to process the request.--------------------------------------------------------------------------------
Error
Today when PHP calls the session prompt fatal Error:session_start (): Failed to initialize storage module:files (session.inc.php on line 83) wrong , let me share with you how this problem is handled.
Original solution: Fatal Error:session_start ():
PHP Tutorial Lists all subfolders and file instances in the specified directory
function Listdirfiles ()
{
Set Directory
$dirs = './';
Declaring a folder array with an array of files$aFolders = Array ();$aFiles = Array ();
$ocfolder = Opendir
/**
@title: IE Cache function (PHP)
*/
Iecache ();
echo Date ("y-m-d h:i:s");
function Iecache () {
$_server[' Http_if_none_match ']?header (' etag:1 ', true,304): Header (' etag:1 ');
}
?>
The IE cache function caches the data in the user's
This article to introduce Iconv () [Function.iconv]: detected an illegal character in error several solutions, there is a need to understand the friend can refer to.
When using the Iconv function to convert gb2312 to Utf-8, how do some Chinese
Talked about the problem of using require_once to still tell that the class was redefined. So I think of the phenomenon I encountered the other day. Here and everyone to say, today only think of the specific reasons, if you do not say it is almost
Article to share an article about PHP fgetcsv windows and Linux compatibility issues, have encountered the problem of students can refer to the next.
Setting area: Simplified Chinese, UTF-8 encoding
The code is as follows
Copy Code
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