Let your PHP4 and PHP5 coexist...

Let's not talk about the advantages. D. What are the disadvantages... is CGI (reference official article: weconsiderinstallingPHPlikethissuicidal .) i. This article involves the extremely software version:

Sina News thieves

Sina news small steal 1.html headmetahttp-equivRefreshcontent60METAHTTP-EQUIVPragmaCONTENTno-cachemetahttp-equivContent-Typecontenttext/html; charset ?????? Title Sina _ news capture program/title/he Sina News thieves 1. Sina _ news

Example: php's substr function is really powerful (substr. php3)

? $ Restsubstr (abcdef, 1); // returnsbcdefechosubstr (abcdef, 1) returns. $ rest.br; $ restsubstr (abcdef, 1, 3); // returnsbcdechosubstr (abcdef, 1, 3) returns. $ rest.br; $ restsubstr EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "

Example: use PHP to upload files of any type and display or download them directly.

This program allows you to upload any types of files and display or download them directly (upload_and_show.php3 ):? Phpif ($ submit) {header (Expires: Mon, 26Jul199705: 00: 00GMT); header (Cache-Control: no-cache, must-revalidate ); hea my program

Retrieve all dates in any date, which can be divided into months.

$ A = 1; $ Endtime = "2002-02-06"; // specify the date $ Info = ""; While (1 ){ $ Gettime = date ("Y-m-d", mktime (0, 0, 0, date ("m"), date ("d")-$, date ("Y "))); $ Month = date ("m", mktime (0, 0, 0, date ("m"), date ("d")-$, date ("Y "))); If ($

PHP-system traffic analysis program

Createtablestream (iptext, sTimeint, visitsint, infotext );? If ($ day0) $ day0; $ mlinkmysql_connect (localhost, ajax, xxxxxxx); // count the total times that the home page has been browsed so far $ queryselectSUM (visits) astvisit> create table

How to determine online users

Solved yesterday's problem: The table results changed as follows: CREATETABLETB_User (-- user table N_UserIdNumber (5) NOTNULL, -- user IDV_NickNameVARCHAR2 (10) NOTNULL, -- nickname v_dvarchar2 (10) NOTNULL, -- password V_TrueNameVARCHAR2 (20)

PHP installation tips: NT + Apache + PHP3

This article only discusses how to install Apache + PHP3 in WindowsNT4.0 or Windows2000. The apachei use is apache_1_3_12_win32.exe. Note that you must install PHP3 first. For more information about how to install PHP3, see the previous article. II.

PHP Installation strategy: PHP3 + NT + IIS

The local environment uses the default installation of NT4 + IIS4, and the IIS root directory is C: \ Inetpub \ wwwroot. 1. you can download the software from ahrefhttp: // container. 2 EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

Practical solutions for failure to use Apache in winxp [sp2]

Recently I have prepared several PHP websites, so I need to install a PHP server on my computer. I haven't touched PHP, apache for a long time, when mysql is used, you just need to steal the lazy package and call it appserv. it can install php,

Local product: PHP4.0RC2-Win32 Installation Guide (Chinese version)

PHP4.0RC2-Win32 version system requirements ------------- Windows 95 or later, WindowsNT4.0 or later-ISAPI mode requires ISAPI4.0 compatible WEB servers (tested on IIS4.0)-Windows 95 requires updated version of DCOM, PHP 4.0 RC2-Win32 ===============

PHP advanced skills (below)

If you need to add elements at the beginning of the array, the code is similar to the above code. The only difference is that you need to replace array_push () with array_unshift ().? /* Create an array */$ fruitArrayarray (apple, orange, banana,

[Original walkerlee] notes on learning PHP function sprintf ()

P study notes on PHP function sprintf () sprintf formatting strings. Syntax: stringsprintf (stringformat, mixed [args]...); return value: string type: data processing content description this function is used to format the string. The format

PHP & Java

MarkNoldJoostSoeterbroekTheJavaextensionisanextremelyexcitingtool. Bylearninghowtousethismodule, youcanextendPHPbythepowerofallavailableJavaclasses. Toshowyoutheba Mark Nold Joost Soeterbroek   The Java extension is an extremely exciting tool. by

Conversion of php Chinese characters: Unicode (UTF8) to GBK

P. Qiushui no hate GBKUnicodeUTF8 Chinese character conversion php's Chinese character conversion has always been quite troublesome. This class has four built-in filters # [dec];, # x [hex];, % u [hex], utf8 conversion is convenient for users. you

Use regular expressions to determine the email and URL.

Bodyonloadf. a. select ();? Phpechoa :. htmlspecialchars ($ a); echobra1:; $ a1eregi_replace (^ [_.] [: alnum:]-] + @ ([[: alnum:] [[: alnum:]-] *.) + [[: alpha:] {2, 3} $), ahrefmailto: Echo 'A: '.html specialchars ($ ); Echo' A1 :'; $

MySql regular expression description

Regular expressions (regex) are a powerful tool for defining complex queries. Here is a simple document, which ignores some detailed information. A regular expression defines a string rule. The simplest regular expression does not contain any

Php template smarty

The template technology of the php template smartyphp should be mentioned frequently. like the famous phplibfasttemplate, the MVC model is basically implemented, and the work cannot be solved, currently, there are not many templates, because there

An example of image storage and browsing (LinuxApachePHPMySQL)

Note that the table structure used in this program is: usetest; createtableimage (partition, descriptiontext, filenamevarchar (50), filesizeint, filetypevarchar (50), filedatalongblob EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

A simple PHP voting program

Analysis: We use a file (data. dat) to store voting columns. each topic occupies one line. in this way, you can join and subtract the columns you want to vote. we use a file (votes. dat) to store our voting results. record the IP address of the most

Total Pages: 12780 1 .... 5146 5147 5148 5149 5150 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.