Pre-Knowledge: Javascript, PHP (small)/perl (small)!
Test environment: Windows2000 + IIS5 + PHP (Win98 + PWS + PHP3 failed, estimated to be a problem with the configuration)
Directory structure:
/cgi-bin/fileup.php (File receive)
/www/test/phpfileup.
Title: Use PHP4 to accelerate network transmission.
/***************************************
* * Title ...: PHP4 HTTP Compression Speeds up the Web
* * Version ...: 1.10
* * Author ...: catoc
* * Filename ...: gzdoc.php
* * Last changed: 25/08/
4. Database connection
With PHP you can easily connect to a database, request data and display it in your Web site, or even modify the data in your database. MySQL is a very popular database, and there are many tutorials on the internet for PHP and
/* banner.php
This PHP3 rolling program is designed by Anton Olsen (aolsen@graphweb.com), you are free to modify and use this program, and freely spread it, if you have more important changes to it, please write an e-mail.
In this program, the
MySQL database table with name book required
The table contains the following fields:
ID The unique identity of the downloaded file
Downnum Number of Hits
first.php
{
?>
&id=
">click here download
ddload.php
Include
/*
+-------------------------------------------------------------------------------+
| = This is haohappy read
>
| = Notes in Classes and objects Chapter
| = Translation-based + personal experience
| = Please do not reprint in order to avoid
/*
+-------------------------------------------------------------------------------+
| = This is haohappy read
>
| = Notes in Classes and objects Chapter
| = Translation-based + personal experience
| = Please do not reprint in order to avoid
Six
Q: How do I send mail with the mail function under Windows?
A: PHP in Unix/linux issued mail with the SendMail program, in Windows does not sendmail, but can be done with the SMTP protocol, as follows: Modify the php.ini file's [Mail function]
/*
+-------------------------------------------------------------------------------+
| = This is haohappy read
>
| = Notes in Classes and objects Chapter
| = Translation-based + personal experience
| = Please do not reprint in order to avoid
/*
+-------------------------------------------------------------------------------+
| = This is haohappy read
>
| = Notes in Classes and objects Chapter
| = Translation-based + personal experience
| = Please do not reprint in order to avoid
Class Db_sql {
var $Debug = false;
var $Home = "/u01/app/oracle/product/8.0.4";
var $Remote = 1;
/* This Query is sent directly after the first connection
Example:
var $ConnectQuery = "ALTER SESSION SET nls_date_language=german nls_date_format= ' DD"
Question 1: Why does "APACHE" appear. Exe:cannot determine local host name. "?
Answer 1:
Due to the fact that the Windows version of Apache does not specify servername by default, the runtime will have an error.
The workaround is to modify the
When it comes to displaying database data, it is generally done with a loop body, and the usual methods are two statements, while () and for (), and the following are some of their respective usages under different circumstances.
Let's take a
Answers to common depressing questions in PHP
Turn from Joy Village
Register_global defaults to off in later versions of PHP4.2
to get a variable submitted from another page:
method One:Locate the Register_global in the php.ini and set it to on.
Author: John Lim.
Translation: Znsoft (http://www.phpease.com znsoftm@21cn.com)
PHP4 already supports Microsoft's COM technology. However, in the documentation, the COM section is rarely mentioned.
Here are a few examples that I have tried. Hope
Cookie function Library: cookie.inc.php3
if (!isset ($__cookie_inc__)) {
$__cookie_inc__=1;
function Jssetcookie ($CName, $CValue, $CExpr =false) {
This function allows you to set a cookie after the HTML header tag,
can be used to supplement the
1, Q: Why appears "APACHE. Exe:cannot determine local host name. "?
For:
Due to the fact that the Windows version of Apache does not specify servername by default, the runtime will have an error.
The workaround is to modify the httpd.conf in the
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