VBulletin HACK ---- two HACK about typographical layout

Simple text layout implemented with vB CodeCause: This is not available in version 1.1.4, and the famous ubb hack home in China adds a lot of UBB Code (vB Code) for text layout ).Advantage: only a few lines are required.Disadvantage: Nesting is

Convert data from Excel to mysql with 20 rows of statements

Since I had some knowledge of php and mysql, I have been very keen on my company's huge Excel database and want to secretly "share" the confidential commercial data, while thinking about how to get it, thinking about how to convert it into a mysql

PHP functions that convert traditional Chinese to simplified Chinese

A few days ago, I asked the oso Forum if there was any source code and no one replied. Finally, I made up my mind to transplant such a function and thanked the netizen Keyes for providing the Delphi source code for transplantation. The call method

Create backward/Forward buttons for query results

Recently, Support Forums has many questions about how to create a link for a search result like "Backward 1 2 3 4 5 forward. I hope the following script can help you to add this feature to your search results page. This example is designed for MySQL,

Use PHP + MySql to write chat rooms

Hello everyone! I haven't seen anyone for a long time. The last time I wrote a PHP chat room through file operations, of course, it was full of loopholes, and every time I refreshed the screen, it was terrible! I have been thinking for a long time.

Practical Application Experience of PHP4 (4)

Author: Sun sportsIn addition to the "if" Statement, PHP also provides the "if-else" structure to define the PHP code executed when the condition description in the statement is "false.The "if-else" structure is used as follows:----------------------

Example of generating sessionid and Random Password

This can be used to verify the user and generate a random password -- teaman//----------------------------------------------------// Function GetSID ()//// Parameters: $ nSize number of caracters, default 24// Return value: 24 caracters string////

One PHP program connecting two different MYSQL Databases

Echo "Connecting as mysql \ n ";$ Connection1 = mysql_connect ('localhost', 'mysql', '') or die ($ php_errormsg );Echo "connection1 is $ connection1 \ n ";Echo "Selecting test for mysql user \ n ";Mysql_select_db ('test', $ connection1) or @ die (

How php generates static files

First: generate static php dynamic page contentCopy codeThe Code is as follows:Ob_start (); # enable server CacheInclude_once 'index. php ';$ Ctx = ob_get_contents (); # Get CacheOb_end_clean (); # Clear the cache$ Fh = fopen ("index.html", "w +

Find the Bad Name of the Code in the project

What you often do and what you always want Obscure if condition 1) Processing | The above Code takes more time to understand than the following code  Although reducing the number of lines of code is a good goal, it is a better goal to minimize

PHP Warning: PHP Startup: Unable to load dynamic library \ D

When I started the PHP environment at home today, I suddenly found that php_mysqli.dll could not be loaded. I found a circle online and there was no solution!Inspired by a buddy in the group, the problem has been solved. If your problem persists,

PHP deletes code for a specific element in an array

For example, the following program:Copy codeThe Code is as follows:$ Arr = array ('apple', 'Banana ', 'cat', 'Dog ');Unset ($ arr [2]);Print_r ($ arr );?> Program running result:Copy codeThe Code is as follows: Array ([0] => apple [1] => banana [3] =

Returns an array composed of the months.

Copy codeThe Code is as follows:/*** Generates an array of months from the start month to the end month.* This method is similar to the getDateArr () method of party zihao.* @ Param unknown_type $ start* @ Param unknown_type $ end*/Function

Description of using static in php Functions

Copy codeThe Code is as follows:Function sendHeader ($ num, $ rtarr = null ){Static $ sapi = null;If ($ sapi === null ){$ Sapi = php_sapi_name ();}Return $ sapi ++; When reading the PW source code, I found that the setHeader () function uses the

Summary of differences between PHP operations on the PDO database between 5.1.* and 5.2 .*

IntroductionPhp5.1. * And php5.2. * are found to be different during Database Pre-compiled code execution.Advantages of pre-Compilation1. Use placeholders to avoid entering data in SQL words. Automatically handle escape of characters such as

Php scheduled task detection user connection status

Scheduled tasksCopy codeThe Code is as follows:Ignore_user_abort (); // The user closes the browser and continues to executeSet_time_limit (0); // no restriction on the running time$ Interval = 3; // The interval between program loops in seconds$

Summary of SESSION usage in PHP

When a SESSION is enabled, a cookie (called PHPSESSID, which can be obtained through session_name () that uniquely identifies session_id in the browser is first sent. in the case of save_handler = files, a file without a suffix is generated under

Some PHP dangerous functions to be disabled (disable_functions)

Phpinfo ()Function Description: outputs information about the PHP environment, related modules, and WEB environment.Hazard level: MediumPassthru ()Function Description: allows execution of an external program and echo output, similar to exec

PHP back up the database to generate the SQL file and download the function code

Copy codeThe Code is as follows:/****** Back up the database structure ******//*Function Name: table2sql ()Function: converts the table structure to SQLFunction parameter: $ table: name of the table to be extractedReturn Value: return the extracted

Php + iframe to hide non-Refresh uploaded files

First, ajax was unable to upload files, which misled me for a while. If I couldn't sleep tonight, I followed the instructions to upload a new file without refreshing.In fact, the principle is very simpleCopy codeThe Code is as follows: Compared

Total Pages: 12780 1 .... 10241 10242 10243 10244 10245 .... 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.