10 Tips for PHP scripts

Installing PHP as Apache DSO PHP is often used with Apache Web servers for the Linux/unix platform. When we install PHP in the Apache environment, you have three installation modes to choose from: Static modules, dynamic modules (DSO), and CGI. I

Using PHP+XSLT on the Windows platform

Using PHP+XSLT on the Windows platform 1. Download PHP 4.0.6 to Http://www.php.net 2. Unzip the php-4.0.6-win32.zip into the c:\php 3. Configure PHP on the Web server 3. Copy the following four files under the DLLs directory to Windows\System (32

An example of a Php+mssql page

Require "config.php"; DL ("Extensions/php_mssql70.dll"); if (!isset ($page)) {$page = 1;} if ($page $db =mssql_connect ($local, $user, $pass); mssql_select_db ($name, $db); $query =mssql_query ("SELECT count (*) as date from News", $DB); $query

Build counter DIY three-step (middle)

This article will be on your own mirror station can also put on their own counters. I assume that you have multiple mirror stations as an example, first insert a few new data in the data table num, visited, which will be used on your mirror station,

Chat room Php&mysql (b)

Second page name= "frame2.php" Include ". /signup/mysql.php "; Header ("Expires:sun, Dec 1997 09:32:45 GMT"); Header ("Cache-control:no-cache, must-revalidate"); Header ("Pragma:no-cache"); Header ("content-type:text/html; Charset=${charset} ");

Community (PHP&&MYSQL) II

function Sdatetime ($STR) { $str =ereg_replace ("-", "/", $STR); $str =substr ($str, 5,strlen ($STR)-8); return $str; } function Reanum ($SID) {//loan Rai Winch Meter $DROOT =getenv (' document_root '); Include ("sql.php3"); $db =mysql_connect

Let your Apache 2.0.45 support PHP on the win platform

Objective If you lack confidence in using Apache. Or you're already using Apache 2 but you can't let him work with PHP (Apache can't parse your. php script). Don't be afraid, after reading this article, all the problems will be toughened and solved.

A program to download the hypervisor (iv)

The hypervisor chang.php source code is as follows: { Header ("Location:.. /message.php?redirect=default.php&message= you are not a manager "); Break }?> if ($step = = "1") { if (! ( $rs =mysql_fetch_array (mysql_query ("select * from

FTP Learning in PHP (iii)

by Vikram Vaswani Melonfire November 07, 2000 Now, we have been exposed to PHP a large number of FTP functions, but this is only a function, far from our goal is not enough, to show the true power of these functions, we should establish a program,

XML for PHP developers part 3rd: Advanced Techniques for reading, manipulating, and writing XML

xsl

Brief introduction PHP5 provides developers with more tools for working with XML, which is getting closer to standardization. New and modified extensions such as DOM, Simplexml (normalization is getting closer), and XSL greatly compress the code

A PHP program that connects two different MySQL databases

  echo "Connecting as MySQL \ n "; $connection 1 = mysql_connect (' localhost ', ' MySQL ', ') or Die ($php _errormsg); echo "Connection1 is $connection 1 \ n "; echo "Selecting test for MySQL user \ n "; mysql_select_db (' Test ', $connection 1)

PHP's ASP Firewall

$aspservername: This variable must have IP in /etc/hosts in the file.    $ASPport: ASP file Server port number.    $ASPpath: The ASP file path on the server side.       $ASPfile: ASP file name    $ASPurlredirect: $ASP file parameters.   

Database-Free detailed domain name Query program PHP version (3)

File Seven: globres.tml The following results from the site provided by the Domain name query system, you can order not registered domain name or query the registered domain name details. Script_name Click here to return to the domain name query

Installing PHP using ISAPI mode under WINDOWS 2000

Install PHP using ISAPI mode. Download Connection: Http://cn2.php.net/get/php-4.4.0-Win32.zip/from/cn.php.net/mirror The ISAPI approach is the most efficient way to execute PHP under the win system IIS. Strongly recommended. After extracting PHP,

Installing the PDO module for PHP5.0.3 under Debian

PDO as the next PHP database unified interface, the current version is 0.9, it seems soon to release, early adopters.After testing, PDO coupling is about 3 times times faster than ADODB, and the direct connection is very small.Test tool: ABTest

Full block of SQL injection attacks in PHP

I. Types of injection attacksThere may be many different types of attack motives, but at first glance there seems to be more types. This is very real-if a malicious user discovers a way to execute multiple queries. We'll discuss this in more detail

Implementation of verification code without the need of GD library

Implementation of verification code without the need of GD library //+------------------------------------------------- //| * File validate_image.php //| * Function to implement website login verification code //| * Version 1.0.0 //| * Date 2005-4-1

Calling external command functions in PHP system,exec,passthru,escapeshellcmd,shell_exec differences and usage

PHP provides us with system (), exec (), PassThru (), shell_exec () functions to invoke external commands. Although these commands can execute the Linux system shell commands, they are actually different: System () outputs and returns the last line

Tips for using PHP cache technology to share

The application of PHP cache technology is quite common, perhaps some people also do not understand this technology, we now give you a detailed introduction of the PHP cache technology related application skills. The pros and cons of several

Learn about the PHP interface

Recently learning PHP5 interface in the process of encountering difficulties, the book is a way to achieve multiple inheritance, but I still do not know how to achieve the specific. In the online check PHP interface data is very few, the Java, in

Total Pages: 5208 1 .... 1108 1109 1110 1111 1112 .... 5208 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.