PHP gets the EXIF information of the picture, PHP comes with a exif_read_data function that can be used to read EXIF information of the picture
echo "Test1.jpg:\ n ";
$exif = Exif_read_data (' tests/test1.jpg ', '
Class verify{
/**
* Verify user name
* @param string $value
* @param int $length
* @return Boolean
*/
public static function Isnames ($value, $minLen =2, $maxLen =20, $charset = ' all ') {
if (empty ($value))
A class for converting PHP solar to lunar calendar
Class Calendar
{
#农历每月的天数
var $everyCMonth =array (
0=>array (8,0,0,0,0,0,0,0,0,0,0,0,29,30,7,1),
1=>array (0,29,30,29,29,30,29,30,29,30,30,30,29,0,8,2),
2=>array (
First of all you should be in PHP 5.3 and above, if the PHP version under this, it is time to upgrade. I recommend that you use the latest version if you have a condition.You should have seen PHP the right, and this article contains a lot of content
Log Interface SpecificationIn this paper, the general interface specification of Log class library is developed.The main purpose of this specification is to allow the Log class library to record log information in a simple and generic manner by
I finally got this to work and so I'll post my findings here.
PHP 5:windows Build needs a MySQL DLL
PHP 5.0 doesn ' t come with MySQL support ... You has to get the librariesyourself ...
I think u can get them from mysql.com
PHP 5 Beta 2
The file
This section collects a lot of error situations that can occur at compile time. 1. I use anonymous CVS to get the latest version of the source code package, but no configuration script file! 2. I have a problem configuring PHP to work under Apache.
A detailed description of the Similar_text and similarity Levenshtein functions for calculating string similarity in PHP
$first = "ABCDEFG";
$second = "AEG";
Echo Similar_text ($first, $second); result output
PHP4.0.6 above can access COM and DCOM objects in the Win32 platform. Here to borrow the ASP idea to visit SQL Server. Of course you can also use the MSSQL series function. If it is an ASP coder, you will feel the following code very familiar,
In the process of using PHP to use the header and Setcookie two functions, these two functions will send a file header information to the browser, but if the two functions before the use of any output (including null output, such as space, carriage
PHP to implement Telnet connection, pass command, get return value and other functions!
Error_reporting (-1);
Class Telnet {
var $sock = NULL;
function Telnet ($host, $port) {
$this->sock =
Web site architecture uses nobackend this schemeNow the application development model attaches great importance to the back-end of the building, and in fact we have been to simplify the back-end development for many years of work, so brother even
PHP adds watermarks to different locations based on the color boundary of the picture
function Add_wm ($NMW _water, $src _file, $output _file, $x, $y) {
if (file_exists ($output _file))
Return
$w 1 =
We can use the news system to store news, we can add to the news, delete, and so on, so as to reduce the workload of everyone, why not experiment.
First, create a table.
CREATE TABLE News (
n_id Int (255) NOT NULL auto_increment,
N_date datetime
A ceil is a function that gets a value upward;
Floor is the function of rounding out the decimal place to get a value;
Round is a function for rounding.
CeilDefinition and Usage:The Ceil () function rounds up to the nearest integer.Copy the Code
People who use PHP know that Zend encode is a scripting tool that uses it to write programs that must be placed on the Web server in the form of source code, so we can't protect our own sources. We all know that the execution efficiency of any one
PHP Setup Issues & Acceleration Suggestions If the PHP settings are not available for use during the application process, check the following parameter settings in the php.ini.
Let's assume that your PHP is installed in d:/php/
;;;;;;;;;;;;;;;;;;;;;
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