COM in PHP (Winows only)

Looking for a long time, finally to find me! Ha ha ... Heard that PHP4 has also supported JAVA/EJB's said. ? This script is come from Zend. :) $word = new COM ("Word.Application") or Die ("Unable to instanciate word "); Print "Loaded Word, Version {$

Use PHP to call the database storage process!

//////////////////////////////////////////////////////////// Emailclass 0.5 Class for sending mail // Paul Schreiber Php@paulschreiber.com http://paulschreiber.com/ // Parameters //   ---------- -Subject, message, SenderName, Senderemail and ToList

Direct access to PHP program files in Dynamic Web pages

Because we need to use some PHP files, and do not want others to directly access the file, we can in other include files such as global.php to define a parameter, in the page data.php before the visit to determine whether the parameter is defined,

Email with PHP

A script that sends an e-mail message may be one of the most common scripts you can find on a Web site, although it's simple, a mail script can sometimes make programmers very frustrated. There is a function called mail () in PHP that only needs to

Questions about the PHP character set

The character set is of course of many kinds, in mainland China is mainly used GB2312, but sometimes we should consider the foreign friends visit your site, then you should use UTF-8, in fact, this is a trend bar, a lot of domestic sites are also

PHP Source Learning: Site Search HTML version

Require ("config.inc.php");function Get_msg ($path) {Global $key, $i;$handle = Opendir ($path);while ($filename = Readdir ($handle)) {echo $path. " /". $filename." ";$newpath = $path. " /". $filename;$check_type = Preg_match ("/\.html?$/",

Php&java (ii)

Example 1: Creating and using your own Java class It is easy to create your own Java class. Create a new Phptest.java file and place it in your Java.class.path directory, which reads as follows: public class phptest{ /** * A sample of a class that

The function of PHP is to display 8 color ribbons

Because PHP's color table parameters can only support 256, in order to achieve the display of 8 colors or more ribbons, I used the method of parameter transfer to achieve. The code for the implementation is as follows: 1, raw color with graphics

PHP utilizes. htaccess The simplest method of anti-theft chain

For example, if your images are in the IMG directory, then delegate a file named. htaccess in the directory, which reads: Rewriteengine on Rewritecond%{http_referer}!^$ [NC] Rewritecond%{http_referer}!simcole.cn

A PHP function that can delete HTML tags in a string

A PHP function that can delete HTML tags in a string Author: limote When guest comments and postings, we do not want visitors to use HTML tags in the comments and posts, so I have to delete the HTML tag when the visitor submits the message and

Publish one of the strongest PHP General page classes

Paging If you've ever studied asp.net, you must have known it had a DataList in it. The paging function is very powerful, this class simulates a part of this function, I dare to use "strong" to define it, because as a General page class, this class

Use PHP to set Web navigation

Navigation | Web page This tutorial belongs to the original download, reproduced please indicate the Web page teaching networkDescription The principle of implementation is that the Web page contains a specific page that you must add '

Example of a text message in PHP (vi)

In this section I will tell you about the establishment of guest.txt and the issues related to uploading. ------- Guest.txt Message content:zihanonline Guestbook:zihanonline Home: http:/ /xxx.com Time: April 15, 2001 14 hours 06 min from:

Write a chat room with PHP and access (vi)

LEAVE.PHP3: $ConnID = @odbc_connect ("Jtfcht", "admin", ""); if ($ConnID) { if (!) ( $id = = "1" && $ps = "Superldz")) { $result = @odbc_exec ($ConnID, "SELECT username,password,roomid,sex from User WHERE userid=". $id); if (@odbc_fetch_into

Write chat rooms with PHP and access (iv)

The code is as follows: $ConnID = @odbc_connect ("Jtfcht", "admin", ""); if ($ConnID) { @odbc_exec ($ConnID, "DELETE * from Room WHERE (Roomid is (SELECT DISTINCT roomid from User)) and roomid<>1"); $result = @odbc_exec ($ConnID, "SELECT

Two ways to generate static pages in PHP

1. When you add records in the background, the target HTML page is generated directly, and the foreground call connection directly points to the generated HTML page. The advantage of this approach is that the program is most efficient. Server load

Write a chat room with PHP and access (vii)

CHTCONT.PHP3: The code is as follows: $sCont = ""; $ConnID = @odbc_connect ("Jtfcht", "admin", ""); if ($ConnID) { if ($id = = "1" && $ps = "Superldz") { $result = @odbc_exec ($ConnID, "SELECT Stime,scont,snamefrom,snameto,seqid,sipfrom from Chtcont

PHP 4.4.0 release fix causes memory crash problem

The PHP development team announced the release of the PHP 4.4.0 version, a release focused on bug fixes, with no new features added to it. Mainly solves the memory crash problem caused by a serious PHP related reference. If the reference fails, PHP

File Upload with PHP

One problem that is often seen on the WebDev site is about file uploads. In this article I will explain how to use PHP to implement file uploads. Design Upload Form Our main goal is to complete the file from the local computer upload to the server

Apache2 + PHP unstable solution under Windows2000

1 Make a bat file in a scheduled task on a regular basis (every night): And then delete the old log file, avoid the file too largeApache-k shutdown move/y Access_log Access_log.oldmove/y Error_log Error_log.old Apache-k start 2

Total Pages: 12780 1 .... 9302 9303 9304 9305 9306 .... 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.