Learn more about php4--back to the future

For those who are not familiar with this concept, the loop is a control structure that allows you to reuse the same series of PHP commands over and over again. The number of actual repetitions can be determined by yourself. The first, and simplest,

A browser Check class

Original Author: epsilon7 Sonymusic (sonymusic@163.net) Class Browserdetector { var $UA = ""; $HTTP content of _user_agent var $BROWSER = "Unknown"; Browser type var $PLATFORM = "Unknown"; Operating system var $VERSION = ""; Browser version

A very simple back-end script for PHP that can get the latest news from (a web).

Sunboy ' s data Bi balo aruhan domdadu o los wuber mongglo in Huen egun i Wuzhe Zhu Tuhe re hu humen tai ban nai Zha bolu ya! $link _prefix = "O"; $link _postfix = " n "; $cache _file = "Tmp/heise.cache"; $cache _time = 3600; $items = 0; $time =

Write a chat room in PHP and access (a)

index.php The code is as follows! function Delquot ($SSTR) { $s =str_replace (Chr (124), "", $sStr); $s =str_replace (CHR), "", $s); $s =str_replace (CHR), "", $s); return $s; } if ($cmdYes = = "Enter") { $sUserName =htmlspecialchars (Trim

Make a message version with pull-down function

Message version has too long message will put the page to support a very long, everyone to those very long message version is not feel uncomfortable to see, every time a lot of scroll bar. If only the title appears at the beginning of each time,

Chat room Php&mysql (b)

Second page name= "frame2.php" Include ". /signup/mysql.php "; Header ("Expires:sun, Dec 1997 09:32:45 GMT"); Header ("Cache-control:no-cache, must-revalidate"); Header ("Pragma:no-cache"); Header ("content-type:text/html; Charset=${charset} ");

Chat room Php&mysql (i)

First page name= "index1.php" Include ". /signup/mysql.php "; $time 1=time (); $userid = 983530409; Echo $n; if ($n ==1) { $userid =time (); $nick = "G". $userid; $last _time= $userid; $sql = "INSERT into Chat_user (userid,id,last_time) VALUES

An example of a simple implementation of a multi-conditional query

In our site design process, often use multi-conditional query, the source of this article is a second-hand housing query example. In this case, we are going to be able to find the information that we need through a number of conditions, such as

Php+ajax implementation of click-through volume plus 1_php

The following is a relatively complete code that can be used in real-world applications, which is implemented by Ajax in conjunction with PHP code. One. The AJAX code is as follows: Ajax implementation of Browse volume click IncreaseNumber

Introduction to PHP

PHP is a server-side scripting language that is easy to learn and use. With minimal programming knowledge, you can use PHP to build a truly interactive web site. This tutorial does not want you to fully understand the language, but it will allow you

How to implement dates after several days of a given date

These days suddenly a lot of people ask such a question, is how to implement in PHP in VB DateAdd function, hehe! But this is a question. Originally this problem is tofu to Huawei applied for a test question, but it was implemented in C + +. Did not

A personal web Automation generation system (6)

Website management, file name: guanli.php Untitled Document                                                           Page Management               

Support Oicq Avatar's Guestbook (ii)

addnote.php Add message                    Include ("config.php"); if ($submit) { $time =date ("Y year m D-day h:i:s A"); $IP = $REMOTE _addr;//message IP address $name =trim ($name); $email

Object-oriented Programming in PHP: A way to develop a large PHP project (ii)

Author: Luis Argerich Translator: Limodou Objects of the "another" class now have all of the data members and methods of the parent class (Something), plus their own data Staff and methods. You can use $obj 2=new Something; $obj 2->setx (6); $obj 2

Using PHP to achieve link popularity statistics

The first thing to note: This is not the homepage counter, although the principle and it is the same. A: Prepare a count file, store the URL of the link and the number of visits, formatted as follows Id|url|count The ID is used to find the index

PHP4 Practical Application Experience (2)

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

A ubbcode function that is fast.

I saw someone publish in front But it's slow and it's very long. This gives a function Ubb ($STR) { $color =array (' Red ', ' blue ', ' green '); $str =eregi_replace (' \[url\] ([a-za-z0-9@:%_.~#-\?&]+) \[\/url\] ', ' \\1 ', $str);//url $str =eregi_

Multi-user counter with a custom number of bits

This counter is capable of customizing any number of digits and can display a simple ad when provided free of charge. When running, you need to create a nobody account in the counter directory that has permission to overwrite the directory

A program Download Management program (i)

Several features of the program are: 1: The Complete search engine 2: Three sorts of objects. (Time to join, number of downloads, program name). and two sorting methods (in reverse order). 3: Administrator changes at any time. 4: Report link error.

Basic PHP and MySQL tutorial (ii)

Data validation Clean up spaces The TRIM function clears the space at the ends of the data, and its syntax is: Trim ($first _name); Processing of required fields In your database, some fields must be filled in. The corresponding fields

Total Pages: 5208 1 .... 2102 2103 2104 2105 2106 .... 5208 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.