PHP code Encryption class, we can according to their own needs to modify the original category, such as the next, hope to share to everyone. This is no problem with Ubuntu testing.Class encryption{Private $c = ';//Store ciphertextPrivate $s = ', $q 1
Now, more and more people surf the internet, many netizens try to make their own homepage, the visitor counter is an essential part. Although many websites offer free counters, can they not be made by themselves? Some friends may think it is
/* Purpose: Read a file under a directory * * The directory to read$folder = "H:/temp"; Open Directory$FP =opendir ($folder); Reading Table of Contentswhile (false!= $file =readdir ($fp)){List all files and remove '. ' and '.. 'if ($file!= '. ' &&
If your own server can also implement denoted domain name is good. It's not complicated, actually. You can also do a denoted domain Name System. The key technology of denoted domain Name System lies in: Implementing the redirection of Web pages
$ftp _server = "*.*.*.*";$ftp _user = "Lu";$ftp _pass = "Love You"; Set up a connection or die$conn _id = ftp_connect ($ftp _server) or Die ("couldn ' t connect to $ftp _server"); $login _result = Ftp_login ($conn _id, $ftp _user, $ftp _pass); if (!
PHP tutorial creating files with automatic file Rename implementation
function CreateFile ($filename, $content = ')
{
$fp = File_put_contents ($filename, $content);
}
The name of the file to create
$filename = ' www.txt ';
if
Chart GalleryThe following class libraries make it easy to create complex diagrams and pictures. Of course, they need the support of the GD library.Pchart-a library in which you can create statistical charts.Libchart-This is also a simple
The generation of automatic miniature graphsBecause of the large amount of data in the picture, the transfer process is relatively long, so when users browse the picture, often want to firstDisplays a thumbnail of a picture.Although you can scale
Upload Form upload.htmlCopy code code as follows:
1. Note This is a label, we want to implement file upload, must be designated as Multipart/form-data, otherwise the server will not know what to do.2. It is noteworthy that the hidden value range
Comments in the template
Each smarty template file is developed by combining the syntax of the web foreground language (xhtml,css and JavaScript) with the Smarty engine.
The language used for the web foreground development is exactly the same as
Addslashes: Adds a slash to the string.Bin2hex: binary to hexadecimal.Chop: removes consecutive gaps.Chr: returns the character of the ordinal value.Chunk_split: splits a string into segments.Convert_cyr_string: convert the ancient Slavic string to
According to Mr. Peng Wuxing's PHP Le, the header can send the Status header, as shown inHeader ("Status: 404 Not Found ");?>In this way, the user's browser can see the 404 error that the file cannot be found, but I tried this.Later, I checked the
If the installation source is slow (the local machine, virtual machine, or foreign network environment is not good), replace the installation source (optional ).Replace the installation sourceSudo vim/etc/apt/sources. list# Replacing resources with
This is mainly related to php non-type languages, such as NULL, FALSE, array (), "", 0, "0 & Prime; if they are equal, but if you determine the true return value of a value, you can use =$ A = 0;$ B = FALSE;$ A = FALSE is not true, but $ B = FALSE
In PHP5, the object-oriented mechanism is enhanced, and access control mechanisms such as public, private, and protected are added. Literally:Public is undoubtedly the Public meaning, meaning that the class itself and its external subclass can
Session_unset ()You shoshould know that on recent PHP only the first one of these functions works correctly. and if you use the other two, var_dump will print you the result you expected (session cleaned up), but the session file on the server won't
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