Source code of my Forum (8)

Reguse. php user registration and logon pageIf ($ action = dl & $ uname){$ Uinfo = $ uname. "|". $ upass;Setcookie ("FlyFoxNet", $ uinfo, time () + 3600 );}?> User Registration Include "linkfox. inc. php ";Include "info. inc. php ";Include "reguse.

Session on setting up a PHP personal website (4)

Three homepage news publishing makes it easier for you to update (below)----- In the previous lecture, we have implemented the basic functions of homepage News Publishing. In this lecture, we will add more bricks and tiles to make it more powerful. (

Improved IP counter

// Require ('common. inc ');$ Arr_request = array ();If (count ($ HTTP_GET_VARS )){While (list ($ key, $ value) = each ($ HTTP_GET_VARS )){$ Arr_request [strtolower ($ key)] = $ value;}}If (count ($ HTTP_POST_VARS )){WHILE (list ($ key, $ value) =

Use a text file to create a message board prompt (on)

The first is to ensure that text files can be read and written. before preparing to write files, all we need to do is to handle user messages!This can be done before submitting a table. we separate the obtained data items with specific symbols, for

10 tips for PHP scripts (7)

PHP and JavaAnother trick of the PHP function is its ability to call methods of existing Java objects. This function allows you to integrate PHP into existing Java-based applications. If you are promoting PHP in your work, you can find the perfect

10 tips for PHP scripts (8)

PHP and XMLPHP contains optional XML extensions that support the Expat parser. XML-related functions in PHP allow you to create a parser to process valid XML documents. If the Apache version you are using is later than 1.3.7, you do not need

How to submit a form to two places at the same time

Control in form. submit ....

Chatting Room php & amp; mysql (III)

Third page name = "frame3.php"Include "../signup/mysql. php ";// Echo $ userid;// Echo $ private;If ($ p) $ p = 1;Else $ p = 0;If ($ action = "OK") and ($ p )){$ SQL = "select userid, id from chat_user_list where userid = '$ userid '";$ Result =

How to synchronize multiple resources

Call multiple resources at a time, and then perform different processing on the same website one by one, the last "same time" parameter update or insert. The update and insert data records received for each item are not the same! ====================

Judge "new" function: returns the number of seconds between today and tomorrow

If you want to determine whether a time value (expressed in seconds) is within the range of today. The following function makes it easy to judge.Function source code:---------------------------------------------NOTE: If $ varTime is within the range

Php implementation code for saving arrays to files

I shared the code for the first time. (the code is poorly written)Php arrays are very powerful. Some data is directly written to files without being stored in the database, and require is used directly.(The function of storing arrays in files is

Super practical seven PHP code snippets

1. Super simple page CacheIf your project is not based on a CMS system or framework, creating a simple cache system will be very practical. The following code is very simple, but it can solve problems for small websites.Copy codeThe Code is as

Use the PHP function memory_get_usage to get the PHP memory consumption.

I. function prototype Int memory_get_usage ([bool $ real_usage = false])2. Version compatibility PHP 4> = 4.3.2, PHP 5III. Basic usage and Examples1. Get the current memory consumptionCopy codeThe Code is as follows:Echo memory_get_usage ();$ Var =

PHP dynamic paging function, required for paging development in PHP

Code:Copy codeThe Code is as follows:/*** Paging Functions** @ Param int $ count total number of entries* @ Param int $ perlogs number of entries displayed per page* @ Param int $ page Current page number* @ Param string $ url address of the page

Differences between iconv and mb_convert_encoding encoded strings in php

Iconv-Convert string to requested character encoding (PHP 4> = 4.0.5, PHP 5)Mb_convert_encoding-Convert character encoding (PHP 4> = 4.0.6, PHP 5)Usage:String mb_convert_encoding (string str, string to_encoding [, mixed from_encoding])Enable the

Introduction to Sina Weibo API development-user authorization (PHP basics)

Now there are more and more people playing Weibo, and there are more and more third-party application development on Weibo. By accident, I began to contact Sina Weibo API development. There are many resources for Sina Weibo API development, sina

Use of the linux iconv Method

According to the phpinfo information, the iconv module has been correctly loaded.Google. It turns out that the iconv method in linux is still a bit problematic.The solution provided by a user on csdn is:View sourceprint? One way is to change iconv

PHP implementation code for refreshing new file uploads

Index.htmlCopy codeThe Code is as follows: resumable upload of files Upload. phpCopy codeThe Code is as follows:Sleep (2 );$ FileTypes = array ('jpg ', 'png', 'gif', 'bmp ');$ Result = null;$ UploadDir = './upfiles ';$ MaxSize = 1 * pow (2, 20

ThinkPHP method to prevent repeated submission of forms

However, there is a situation that cannot be prevented: After the user submits the form, click the back button of the browser to return to the form page. At this time, the browser will directly retrieve the page from the cache, so the token

Php advertisement calling code (supporting Flash call)

The call method is as follows: The DebugStr function is similar to an echo function.Copy codeThe Code is as follows:DebugStr ('$ Adv-> getContentById ($ id); $ id is the advertisement number. Only one call is called and the returned content is a

Total Pages: 12780 1 .... 10244 10245 10246 10247 10248 .... 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.