Php function to capture remote images to local
// Php ob function library captures remote images
Function GetImage ($ url, $ filename = ""){
If ($ url = ""){
Return false;
}
If ($
The phpgtimagesize function obtains the image size.
/* 1.jpg image of the desired size */
$ Arr = getimagesize ("1.jpg ");
/**
* $ Arr is an array type.
* $ Arr [0] indicates the image
Example of php magic function _ call ()
Class {
Public $ name;
Function test1 ($ ){
Echo "test1111 ";
}
Function test2 ($ ){
Echo "test2222 ";
}
// When an
Php paging class (source code + instance)
Share a php paging class, which is well written. we provide two calling instances for this paging class for your reference.
1. php paging code
Number = $ number; $ this-> N_p_p = $ n_p_
Php is the easiest way to generate excel or Word documents
Header ("Content-type: application/vnd. ms-excel ");
Header ("Content-Disposition: filename=test.xls ");
Echo "test1 \ t ";
Echo "test2 \ t \ n"; //
Php regular expression to search for html tags with id attributes in html
In php, use regular expressions to search for all html tags with id attributes in html. This article provides detailed operation methods. For more information, see.
PHP generate UTF-8 encoded CSV file open garbled solution
Php generated UTC-8 encoded csv file, use excel open view garbled, share the solution, for your reference.
Openoffice is opened normally while excel is not opened
Thinkphpmemcache usage example
For usage of memcache in thinkphp, including how to install and run memcache in ThinkPHP, and how to use memcache in thinkphp, refer to the example of using memcache as a cache in thinkphp.
Memcache
Introduction to the php numeric formatting function number_format, number_format (number to be formatted, number of decimal places to be retained, decimal point string, thousands of delimiters ).
Introduction to the php numeric formatting
Phpapc high-speed cache configuration
Print_r (apc_cache_info ();?>
PHP Warning: apc_cache_info (): No APC info available. Perhaps APC is not enabled? Check apc. enabled in your ini file
Programmer's path [bottom]
I. strengthen the ability of logical analysis and mathematical modelingWhat is the purpose of programming? Is to solve the real problems. In reality, the problems are described in natural languages and cannot be
Multi-content paging
Multi-content paging php
$ Aa = 'abnormal, soft, or liquid droppings occur in the pigeon house, which is a common problem. it is easy for pigeon owners to discover such droppings, it also indicates a
Obtain host domain name functions
Search, I want to use it, paste it out, it seems there is a problem with wood!Echo $ HTTP_HOSTIs the domain name to be output!
Function PMA_getenv ($ var_name ){
If (isset ($ _ SERVER [$ var_
Php obtains the number of days in the month of the specified time.
Php obtains the number of days in the month of the specified time.
$ Days = cal_days_in_month (CAL_GREGORIAN, 4, 2011 );
Echo "returns the
Kurogo sample code Helloworld
Kurogo Mobile Framework Mobile development Framework. Kurogo provides cross-platform support and preset modules.
Class HelloWebModule extends WebModule
{
Protected $ id = 'hello
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