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,
Author: Sun Sports
Now you uncover the other half of the puzzle-the "login.php" script file. If nothing happens, the script will accept the input name, check if the user exists, decide whether to allow or deny access to the site. Since you have not
Years ago I began to engage in three-dimensional animation learning, after learning PHP, found that can be dynamically generated by PHP VRML documents, a bit similar to the generator dynamic generation of flash mode.
Because of the broad and
Since PHP's natural table parameters can only support 256, in order to achieve the display of 8 colors or more color bands, I use the method of parameter transfer to achieve. The specific implementation code is as follows:
1, the color of the
Database links
PHP's greatest feature is the ability to operate a database in a particularly powerful way, with PHP providing support for a variety of databases.
With PHP you can easily connect to a database, request data and display it in your
The kernel of the PHP Processing Object section has been completely re-developed, providing more functionality while also improving performance. In previous versions of PHP, objects were handled the same way as basic types (numbers, strings). The
Author: China Red Wolf
The previous article, "Talking about PHP syntax", has talked about PHP data types and expressions. Now, let's look at the variables and constants of PHP.
Let's take a look at the first example.
Files: test.php
This is a
A function that obtains the file name extension
/*
Getfiletype
Usage: Getfiletype ($filename)
*/
function Getfiletype ($Filename) {
if (Substr_count ($Filename, ".") = = 0) {//Check if there is a. number in the file name.
Return return empty
}
Creating images dynamically
After installing some third-party libraries, combined with your graphics processing skills, you can create and manipulate images in PHP. In fact, you don't need much knowledge of geometry. When I was in high school, this
[PHP]
; PHP is also a constantly evolving tool, and its functionality is constantly being truncated.
; And PHP.ini's settings change can reflect a considerable change,
; It's good to study php.ini before using the new PHP version.
;;;;;;;;;;;;;;;;;;
The environment used
Set up a test database first
Then create an ODBC link
and build a test PHP Script.
Let's test it out.
The environment used
This document is mainly described in WIN32 environment, you need to run Windows 9x/nt/2000 Computer, and
/**
* Global Function
*
* @author Avenger
* @version 1.14 $Id 2003-05-30 10:10:08 $
*/
/**
* Popup Prompt box
*
* @access Public
* @param string $txt pop up a popup box $txt the content to be popped
* @return void
*/
function PopBox ($txt) {
echo "";
Copy CodeThe code is as follows:
Class calendar{
/*
* Www.jb51.net Revised version
*/
var $YEAR, $MONTH, $DAY;
var $WEEK =array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var $_month=array (
"He",
In PHP, file uploads are generally implemented through Move_uploaded_file ().
BOOL Move_uploaded_file (string filename, string destination) This function checks and ensures that the file specified by filename is a valid upload file (that is, the
Building a simple interactive website (iii)
6. Password verification
Maybe you want to put your photo collection on your website, and just want to show your intimate friends that you need a password verification program.
6.1 HTTP-based
Look at the case study regular expression
First, let's take a look at two special characters: ' ^ ' and ' $ ' they are used to match the start and end of the string, respectively, to illustrate the following:
First, let's take a look at two special
Record the process to prevent forgetting, for reference only.
one, where to get PHP
Open the download page for the official PHP website: http://www.php.net/downloads.php
Select "PHP 5.2.0 installer [18,879kb]-2006" link to download
two, PHP5
php--the function of the following class is very powerful, not only can send HTML-formatted mail, you can also send attachments
How to use:
Copy CodeThe code is as follows:
Include "Email.class"
$mail->setto ("a@a.com"); Recipient
$mail-SETCC
on the Internet to find PHP learning resources, stroll to the openphp.cn, according to my understanding of the station's webmaster to PHP can be said more proficient. It is worth my studying, he has written this article: introduce several PHP books
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