Forum imitating OSO (3)

Post. php (publish new posts) problem If (! $ Cookie_user){Echo " ";}Else {include ("connect. inc. php ");$ Query = "select * from my_user where user = '". $ cookie_user. "' and password = '". $ cookie_password ."'";$ Res = mysql_query ($ query );

PHP installation tips: FAQs (2)

IV,Q: It seems that there is a problem when I compile PHP and APACHE together. It always says that the httpd. h file cannot be found, but the file actually exists. Why?A: You need to let the PHP configuration/installation script know the highest

Installing php4.0 + mysql in windows iis5

I have been using php for a while and have been developing it in the company's configured environment. I always want to try to install it myself. My classmates finally gave me this opportunity. Now I will share my views and some additional comments

A concise multi-level forum

In this forum, less than 200 lines of code are used, and the execution speed is quite fast. Run the example in: http://www.hnpts.ha.cn/forumMYSQL database: yxforum+ ------- + -------------- + ------ + ----- + --------- + ---------------- +| Field |

A simple domain name registration query Program

// Query whether a domain name existsFunction SearchDomain ($ domainName ){// Determine whether the domain name is legal. I am not familiar with the regular expression. If that friend has more details, please refer to the following link :-)// If (!

Use window_onload to implement default select

Please refer to this program:// $ Day of the week, for example, Wednesday$ Day = 3;?> test '"> Monday Tuesday Wednesday Thursday Friday Saturday Sunday By analogy, window_onload can be used to skillfully select some default items.Hope to help

Practical Application Experience of PHP4 (6)

Author: Sun sportsNow you understand that PHP allows you to nest conditional statements. However, if you look at the example to demonstrate this concept, you will agree that it is both complicated and terrible.----------------------------------------

Mysql-based bbs design (4)

5. Layout module designThe so-called classification is mostly for the telnet server. In cq66 mode, you can pressClassification according to your own wishes. In the end, access is directly based on the version.For access to layout articles, the

Code for capturing YAHOO stock quotes in real time

Function getYahooQuote ($ stockSymbol = "CCR "){If (! $ TargetURL) $ targetURL = "http://finance.yahoo.com/q? S = $ stockSymbol & d = t "; // set the URL target to be crawled$ Fd = fopen ("$ targetURL", "r ");$ StopExtract = 0;$ StartExtract =

A simple counter written in php3

Php has extremely powerful image processing capabilities and can be used to dynamically generate web Images easily.Here is a simple counter made of php.1. Overall Thinking:Records the number of previous visitors in a text file. When a webpage is

Common php database configuration files

Config. php file:Copy codeThe Code is as follows:$ Db_name = "test ";$ Db_username = "root ";Global $ db_password;?> Database Operation class (call configuration file) db. fun. php:Copy codeThe Code is as follows:Require ("config/config. php

Php function code to replace special characters in ultra-long text

Copy codeThe Code is as follows:Function unhtml ($ content ){$ Content = htmlspecialchars ($ content );$ Content = str_replace (chr (13), "", $ content );$ Content = str_replace (chr (32), "", $ content );$ Content = str_replace ("[_ [", "$ Content =

Smarty configuration and advanced cache technology sharing

Preface Smarty is an excellent PHP template engine that separates logical code from user interface.Learning and using Smarty without applying it to the cache technology is a huge loss. It can cache the HMTL file that the user finally sees into a

Highlights of PHP interview questions compiled by NLP

PHP Basics1. Evaluate the value of $Copy codeThe Code is as follows:$ A = "hello ";$ B = & $;Unset ($ B );$ B = "world ";Echo $; 2. Evaluate the value of $ BCopy codeThe Code is as follows:$ A = 1;$ X = & $;$ B = $ a ++;Echo $ B; 3. Write a function

Php prompts that it cannot be loaded or mcrypt does not find the PHP extension mbstring Solution

The PHP extension mbstring is not found, and you are now using a multi-byte character set. PhpMyAdmin without the mbstring extension cannot correctly split the string and may produce unexpected results.Solution to failure to load mcrypt Tip: The

Getting started with crossing FireWire php object-oriented

Copy codeThe Code is as follows:/** Getting started with php through FireWire!* Php has become the preferred development language for mainstream web developers in China. Its powerful object-oriented language makes it easy for beginners to find their

Summary of N methods for getting file extensions in PHP

1st methods:Copy codeThe Code is as follows:Function get_extension ($ file){Substr (strrchr ($ file, '.'), 1 );} 2nd methods:Copy codeThe Code is as follows:Function get_extension ($ file){Return substr ($ file, strrpos ($ file, '.') + 1 );} 3rd

Php _ autoload automatic loading class and Mechanism Analysis

To use a class before PHP5, you only need to directly include it using include/require.Test. class. phpCopy codeThe Code is as follows:Class abc {Function _ construct (){Echo 'www .hzhuti.com;}}?> Load. phpThe Code is as follows:Copy codeThe Code is

PHP asynchronous socket call implementation code

PHP asynchronous call Implementation MethodThe browser and server communicate with each other over the connectionless HTTP protocol. connectionless programs are characterized by client requests to the server. The server outputs the corresponding

Functions in php that may be used to encrypt strings [base64_encode, urlencode, sha1]

The logon principle is quite complicated. I thought it was too simple to get the page from curl and then post it.Sort out the price processing string functions:Copy codeThe Code is as follows:$ Encryption = "username ";Echo base64_encode ($

Total Pages: 12780 1 .... 4959 4960 4961 4962 4963 .... 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.