Source code of my Forum (7)

Info. inc. php mainly performs judgment and information processing.Function update ($ reginfo){Switch ($ reginfo [4]){Case ($ reginfo [4] = 1 ):$ Reginfo [4] = "male ";Break;Default:$ Reginfo [4] = "female ";Break;}Switch ($ reginfo [11]){Case ($

Source code of my Forum (9)

Untitled Document Include "linkfox. inc. php ";Include "info. inc. php ";?>$ Query = "select * from foxbbs where id = '". $ bbsid ."'";$ Req = mysql_query ($ query );If ($ req ){$ Bbsmes = mysql_fetch_array ($ req );$ Djnum = $ bbsmes ["djnum"] + 1;$

A domain name query Program

(Two string functions are used: implode () and explode)The source code of the domain name query I made mainly uses two string functions: implode () and explode. The powerful functions of these two functions can be used to cut strings. com ,. net .,

Chatting Room php & amp; mysql (2)

// Name = "frame2.php" on the second page"Include "../signup/mysql. php ";Header ("Expires: Sun, 28 Dec 1997 09:32:45 GMT ");Header ("Cache-Control: no-cache, must-revalidate ");Header ("Pragma: no-cache ");Header ("Content-Type: text/html; charset =

Use php to automatically call flash on different servers

Recently, the school celebrated a flash Animation Website, but its size was relatively large. If it is uploaded to the school server, access from the public information network is slow, and access from the campus network is not smooth, but

Community (php & amp; mysql) 4

Echo " ";Echo " ";Echo " ";Echo " ";Echo " ";Echo " clip ";Echo " only exist ";Echo " Lai ";Echo " ";Echo " signature stamp ";Echo " ";$ Qsql = "SELECT * from bbs_subj where id = '$ sid '";$ Rs = mysql_db_query ($ SQL ['db'], $ qsql );$ Row =

Text-based search

In order to enhance the functions on my website, I developed a text-based search based on my website, which is now used on my website. ToI learned from each other and communicated with other netizens. I am publishing the source code. The source code

Shopex host reports error request solution (No such file or directory)

I. shopex host environment1. windows 2003 R22. iis6.0 + php5.0 and above3. mysql5.0 or aboveFor more information about the php environment, see:How to configure and build the iis + php + mysql environment in windows2003Ii. shopex host issue

Analysis of php SQL Injection Process

Today, I learned some basic SQL Injection skills from the Internet. The focus of SQL injection is to construct SQL statements. Only SQL statements can be used flexibly.Statement can be used to construct the cou injection string. After completing the

Php Array Function Sequence: array_unshift () inserts one or more elements at the beginning of the array

Array_unshift () Definition and usageThe array_unshift () function inserts one or more elements at the beginning of the array.The added elements are added as a whole. The order of these elements in the array is the same as that in the parameter.This

PHP is easy to ignore and error trap number and string comparison

0 returns true if it is compared with any character leading by a non-digit character (or character that cannot be converted to a number) (operator =. The reason is that when a number is compared with a string, the string is first converted to a

PHP learning note _ encoding (json_encode is not displayed in Chinese)

Find a solution on the Internet:Copy codeThe Code is as follows:/* Process json_encode Chinese garbled characters */$ Data = array ('game' => 'Ice-fire status', 'name' => 'thorn spirit ', 'country' => 'Ice-frome status ', 'level' => 45 );Echo

In php, XMLHttpRequest (Ajax) cannot set a custom Referer solution.

Solution: Use the server as the proxy.In PHP, use my favorite most powerful CURL.The following is the instance code for querying domain names on www.net.cn.Copy codeThe Code is as follows:$ Dn = $ _ GET ['dn ']; // domain name, excluding www$ Ex = $

Prompt Trying to clone an uncloneable object of class Imagic

If you use a program circulating on the Internet to implement pdf as png, you need to use Imagic extension. After windows is installed, the following message is displayed:Fatal error: Trying to clone an uncloneable object of class Imagick in C: \

The array_count_values () function of the php Array Function Sequence counts the number of occurrences of all values in the array.

Array_count_values () Definition and usage The array_count_values () function is used to count the number of occurrences of all values in the array.This function returns an array. The key name of the element is the value of the original array, and

Php Array Function Sequence-array_search ()-Return key name by element value

Array_search () Definition and usageThe array_search () function is the same as the in_array () function. You can find a key value in the array. If this value is found, the key name of the matching element is returned. If not found, false is

Php File Cache Function

Copy codeThe Code is as follows:Function createHashDir ($ sign){$ Md5 = md5 ($ sign );If (! Is_dir (MB_CACHE) mkdir (MB_CACHE );For ($ I = 1; $ I {$ Dir. = $ md5 {$ I }.'/';If (! Is_dir (MB_CACHE. $ dir )){Mkdir (MB_CACHE. $ dir );}}Return MB_CACHE.

Comparison of CGI, FastCGI, php-CGI, PHP-FPM, and Spawn-FCGI in PHP environment configuration?

What is CGI? CGI is a Common Gateway Interface. It is a tool for the HTTP server to "talk" with programs on your or other machines, the program must run on the network server. CGI can be written in any language as long as it has standard input,

Pain: the world's smallest and simplest PHP template engine (Basic Edition)

Package downloadPain. phpCopy codeThe Code is as follows:Class Pain{Public $ var = array ();Public $ tpl = array ();// This is the method to assign vars to the templatePublic function assign ($ variable, $ value = null){$ This-> var [$ variable] = $

Comparison of several single-dimensional array traversal methods in php

Copy codeThe Code is as follows://$ Arr = array ('A' => 'abc', 'B' => 123, 'c' => true );// B// $ Arr = range ('A', 'D ');// 1For ($ I = 0; $ I Echo $ arr [$ I]. ',';Echo ' ';// 2Foreach ($ arr as $ key)Echo "$ key ,";Echo ' ';// 3Foreach ($ arr as $

Total Pages: 12780 1 .... 10247 10248 10249 10250 10251 .... 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.