Php port sniffer-you can specify the website and port

Php port sniffer-you can specify the website and port // Php port sniffer-you can specify the website and port // Returns the sniffing result Function http_request ($ server, $ port ){ $ Data = ""; $ Query = "HEAD/HTTP/1.0 "; $ Fp = fsockopen (

All source code of the file upload program

All source code of the file upload program 1. upfile. php file File Upload 2. upload. php // Obtain the current date and connect it to a string $ Datetime = getdate (); $ Time = implode ("", $ datetime ); // Construct the file

Mysql-based Forum (6)

Mysql-based Forum (6) # post. php Require ("config. inc. php "); $ SQL = "select * from boardinfo where name = '$ board '"; $ SQL _result = mysql_query ($ SQL ); $ SQL _row = mysql_fetch_array ($ SQL _result ); ?> Publish new posts

Mysql-based Forum (4)

Mysql-based Forum (4) # index. php Forum # Left. php $ Fp = fopen ("file/counter.txt", "r "); $ Counter = fgets ($ fp, 8 ); Fclose ($ fp ); $ Counter = $ counter + 1; $ Fp = fopen ("file/counter.txt", "w "); Fputs ($

Mysql-based Forum (2)

Mysql-based Forum (2 )################################# # Apply. php #################### ################################# Registered user Register a new user Registration Notice: A user can

Practical application experience of PHP4 (2)

Practical application experience of PHP4 (2) by Sun Sport The other half-the "login. php" script file is opened. If not, the script will accept the input name, check whether the user exists, and decide whether to allow or deny access to the site.

Combined use of javascript and select components

Combined use of & # 106avascript and select components // Use Javascript and select components in combination // In the process of writing a program, after selecting the select object option, // You do not need to submit a button, but directly

How does PHP send data to MySQL?

You should have a better understanding of how PHP sends data to MySQL. the following code is a simple HTML form: Last name: Name: After you enter the data and press the submit button, this form will send the data to submitform.

Use php + mysql as a business card Library Program

Use php + mysql for a business card library program with the function of searching by category and querying by page. Step 1: Create a static page as follows. Step 2: create a database as follows. Id int (4) no auto_increment Http varchar (25)

An example of accessing the MySQL database using PHP

An example of accessing the MySQL database using PHP PHP + MySQL example Enter data in the text area and confirm $ Connect_id = mysql_connect ("localhost", "username", "password "); If (isset ($ txt )){ $ Dbtime = date ("Y-m-d

Use static to display the color of a table in different rows

Use static to display the color interrows of a table. use static to display the color interrows of a table. We use PHP to query data from the database and output the results to the browser. if there are many rows in the results and the bgcolor of

A php function that can delete HTML tags in a string.

A php function that can delete HTML tags from a string. a PHP function that can delete HTML tags from a string. Author: limote When a visitor leaves a message or post a message, we do not want the visitor to use HTML tags in the message or

PHP beginners (5)

PHP beginners (5) building a simple interactive website (1) Many features of PHP are related to other software or tools. Using the PHP knowledge we have learned so far, we can try to build a simple interaction website. We can learn a lot from this

One MYSQL operation class

One MYSQL operation class The code is as follows: Class DB {Var $ host_addr = "localhost ";Var $ host_user = "root ";Var $ host_psw = "123 ";Var $ db_name = "test ";Var $ link_id;Var $ query_id;Var $ numRow;Function DB (){$ This-> link_id = @

Date and time in PHP

PHP has many easy-to-use functions to display and process dates. To display a date or time in a specific format, you can use the date () function. It has two parameters: how to display the date format and the timestamp representing the date you want

PHP configuration tips include MYSQL5 garbled solution

PHP configuration experiences include MYSQL5 garbled solution after a recent wave of PHP programming, I was deeply touched by the configuration of PHP on the WINDOWS platform. at the beginning, I used a one-click installation of dummies, however,

Convert GB encoding to UTF8 using PHP

Convert GB encoding to UTF8 using PHP The gb2utf8. php file is as follows: The code is as follows: Class GB2UTF8{Var $ gb; // The GB2312 string to be convertedVar $ utf8; // The converted UTF8 stringVar $ CodeTable; // array of GB2312 Code files

PHP text operations

PHP text operations The code is as follows: Class CtbClass {Var $ file;Var $ index;// Create a file and write it into the input.Function null_write ($ new){$ F = fopen ($ this-> file, "w ");Flock ($ f, LOCK_EX );Fputs ($ f, $ new );Fclose ($ f );

Verification code _ PHP instance in php

PHP q & a verification code The code is as follows: Class code{Var $ width = 160; // the image widthVar $ hight = 40; // The Image heightVar $ image;Var $ red = 223; // The RGB color of the imageVar $ green= 225; // RedVar $ blue = 227; //

Basic operations of file systems

Basic operations of file systems The code is as follows: Error_reporting (2047 );/** Class I/O (snkedevil completed 03.25.04) (v1.0.0.0)** [Description]* This class is used to process the file system.** [Function]* *** List_dir ($ dir_path );*

Total Pages: 12780 1 .... 9943 9944 9945 9946 9947 .... 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.