Brief introduction
Solar is a rapid development framework for Web applications, which is oriented to PHP5 and is composed of many basic classes and components. Its use comes from the Savant template engine, which provides a wealth of functionality,
Verification Code effect Reference (source code) http://mail.htjs.net/yanzhengma/test.php
Modified on the basis of http://www.dev-club.com/club/bbs/showEssence.asp?id=20768&page=1
Session_Start ();
Session_register ("Login_check_number");
Last
Although a lot of methods, but easy to use, I think it is first to determine the generated first page file generation time and the difference between the existing time, if you meet a value began to generate, this method is easy to compare, not much
From the browser, the use of header (location) to jump to another page, but in fact, PHP will still execute the background code, if the following code has unsafe logic, then directly disregard the conditions set by the developer, continue to carry
To write an ActiveX Dll first:
To create a new VB6 project, the ActiveX DLL names the project P_test, the class name is C_test, and the file contents of the class are as follows:
Option Explicit
Private Myscriptingcontext as
1, replace i=i+1 with I+=1. It is more efficient to conform to the C + + habit.2. Use PHP internal function as much as possible. Write your own function before you need to consult the manual to see if there are related functions, otherwise thankless.
Packaging | data | database
We now encapsulate it in Dbfz.inc, which is designed as follows:$#@60;?Class dbinterface{var $dbID = 1;//To determine the current operation of the database, when DbID 1 for MySQL, when 2 for SQL Server, 3 for ODBC or
Google|sitemap
put the following code as a php file, upload the site root directory, run once, and get the URLs under the root directory.txt that can be used as your site's sitemaps submitted to google!Note: Change the URL in the code to your home
Java is a very powerful programming tool, its extension library is also very useful, this tutorial, mainly on how to use PHP invoke powerful Java class library (classes). To facilitate your study, this tutorial will include Java installation and
The PHP instance is a way to select duplicate data from an array
The following are the referenced contents:$num = count ($array);if ($num){Sort ($array);}if ($num!=0){$m = $array [0];$n = 0;$kind = 1;echo $array [0]. " ----------";for
TinyURL is a shortened web site service, you can turn a long web site into a simple address, usually the way to create TinyURL is to its homepage to create, sometimes there will be users in the client automatically generate TinyURL situation
function | chinese | string
/**
@Author: LAD
@URL: http://www.cnpik.com/
@E_mail: lianxiwoo@sohu.com
@ Do whatever you want, don't take the money:-)
*/
function Cnsubstr ($string, $sublen)
{
if ($sublen >=strlen ($string))
{
return $string;
}
$s =
Using Smarty to do the template processing class is currently the choice of most PHP sites, because it is powerful, and ADODB with very good, handled is handy. But whether it is smarty, or ADODB, because the function is powerful, class library
Compared to Java from the evolution of simple to complex, PHP loyal to easy to learn the original flavor of the insistence by the vast number of developers welcome, in recent years, the momentum rose, and simple is power, this sentence applies to
Regular expressions for string processing, form verification, and other occasions, practical and efficient. Some commonly used expressions are collected here to prepare for a rainy-future.
a regular expression that matches a Chinese
########
Bimage.php3
########
/*
Function description
$chartdata: Data, is an array element
$chartfont: Font Size
$chartdiameter: Determine the size of the cake (to see you hungry, hehe)
$chartlabel: Title, also an array
A function to obtain image information comprehensively getimageinfo (), the function is very good ah! Oh
function Getimageinfo ($img) {//$img for absolute path of image file$img _info = getimagesize ($img);Switch ($img _info[2]) {Case 1:$imgtype = "
Read some of the basics of PHP, and here I summarize:
1. There are three ways to embed PHP scripts in HTML:
Embedding mode One
Echo ("test\");
?
Embedding Mode Two
echo "
Test2";
? >
Embedding mode Three
echo
In PHP, the role of include and require is easier to confuse. Let me take a classic example to illustrate the difference.
When we visit a database frequently, we can write a library statement as a file
con_db.php
$DBH = mysql_connect (' localhost ',
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