Java extensions in PHP

Java's scalability is one of its extremely exciting uses. By learning how to use this module, you can expand all available Java classes. To help you understand the basics of Java scalability, this article includes system installation and some code

Run External commands as root in PHP

Running external programs that only root users can run in PHP has always been an old problem and is difficult to implement using conventional methods. This is because, in general, PHP is a module of APACHE, that is, PHP is a part of APACHE, and

Brute force FTP username and password (PHP files)

// Usage: php file. php ftp ip port user dictionary password dictionary, example: php ftp. php 192.168.8.10 21 user. dic pass. dic. The user name and password can be changed to OK .txt in the same directory in seconds. // Obtain the corresponding

Wonderful use of the Output Buffer function

In PHP programming, we often encounter some functions that directly generate output, such as passthru (), readfile (), and var_dump. however, sometimes we want to import the output of these functions to a file, or process the output of these

Several complementary functions of session (1)

In PHP, there are a lot of discussions about sessions. In fact, there are still several functions in PHP4 that we have not noticed at ordinary times.Let me introduce them to you.Session_set_save_handler () is really a good thing.//*******************

PHP reads the link of a site

Principle: Read the source files of a website and analyze the source code using regular expressions to obtain all links. /********** Qiushuiwuhen (2002-5-20 )***********/If (empty ($ url) $ url = "http://www.csdn.net/expert/"; // set url$ Site =

Compile your own php extension functions (1)

Writing your own php Extension function Yorgo Sun 2002/01/22 the php program has been written for a long time. Naturally, I know all the functions provided by him. The many functions provided by him are really useful, however, sometimes you may find

PHP tutorial. Application Example 6

Secure File Download using PHPThe procedure is as follows:$ File_name = "info_check.exe ";$ File_dir = "/public/www/download /";If (! File_exists ($ file_dir. $ file_name) {// check whether the file existsEcho "file not found ";Exit;} Else {$ File =

ICQ Pager written in PHP

Change the address. You can call OICQ! # ICQ Pager v0.0.1# Brazil r0x.# Thanks goes to upalele, meganha, neo, figui, lunetta and vipman (for his psychological help about iX [Egg])Class icqpager {Var $ path = "/scripts/WWPMsg. dll ";Var $ host =

Php creation menu

For people who have used C/S, menu selection is the most basic operation. In php, it is easy to implement the menu function. The method is as follows:Menu. php: //// Prepared by christine// Email: greenchn@163.net//Class menu {Var $ name;Var $

Very good php branch Program-branch by specified word count

It is convenient and useful to break a line by the number of words in each line you specify. // Text_wrap ($ text, $ max_width, $ html_type)// $ Text to be formatted// $ Length of max_width-format// $ Html_type formatFunction text_wrap ($ text, $

How to capture the "Shenzhen window" News

Recently, many netizens have asked me how to use PHP to capture news from other websites. At first, I began to worry about infringement and have never been made public. However, there are too many people to ask. Here is an example-how to capture the

An entry-level Class article

I just browsed the article about Class updated on the homepage (referring to the http://www.phpe.net/articles/389.shtml of PHPE), very good, it is recommended to have a look. Exploration of classes ~~ It took me half a year to understand the role

Functions for converting common php characters and hexadecimal characters

Function SingleDecToHex ($ dec){$ Tmp = "";$ Dec = $ dec % 16;If ($ dec Return $ tmp. $ dec;$ Arr = array ("a", "B", "c", "d", "e", "f ");Return $ tmp. $ arr [$ dec-10];}Function SingleHexToDec ($ hex){$ V = Ord ($ hex );If (47 Return $ v-48;If (96

Php source code for simple counters

$ Memo_file = "phpcount/vst.txt ";If ($ phpxcount <> $ REMOTE_ADDR ){$ Visits = file ($ memo_file );$ Number_of_last_visit = $ visits [0];$ Number_of_new_visit = ++ $ number_of_last_visit;$ Fp = fopen ($ memo_file, "w ");$ Fw = fwrite ($ fp, $

Section 14th -- namespace -- ClassesandObjectsinPHP514

/* + --------------------------------------------------------------------------------- + | = This article is Haohappy read > | = Notes in the middle Classes and Objects chapter | = translation + personal experience | = Do not repost to avoid

Upload any types of files using PHP

This program allows you to upload files of any type and display or download them directly (upload_and_show.php3 ): If ($ submit){Header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT ");Header ("Cache-Control: no-cache, must-revalidate ");Header

Use XML + FSO + JS to implement server-side files

First, create a program on the server to generate an XML file to return to the client, (getfolder. asp) "& Chr (13) response. write" "& Chr (13) folders = request (" folder ") if folders ="/"then folders =" "end if dim count = 0 folders =

Current number of online users of the website

The most important part of a website may be the number of sites connected to you. This tutorial will show you how to use AltaVistaA simple method implemented by search engines.First, we need to prepare the URL used in the script. This can be

Check whether the ISBN number is valid

[Programming language] PHP [source code source] http://px.sklar.com [function description] checks whether the ISBN number entered by the user (either with or without a hyphen) is legal. The source code is as follows:

Total Pages: 12780 1 .... 5782 5783 5784 5785 5786 .... 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.