Untitled Document
Computer World Developer ClubPHP version of the Java version of the Delphi version
A very small but useful CSS print style. Normally a table with a background when printed, the grid you see on the page
| = This is haohappy read
> | = Notes in Classes and objects Chapter | = Translation-based + personal experience | = Please do not reprint in order to avoid the unnecessary trouble that may occur, thank you | = Welcome criticism, hope and all the
This app allows you to upload any type of file and can be displayed or downloaded directly (UPLOAD_AND_SHOW.PHP3):
if ($submit)
{
Header ("Expires:mon, Jul 1997 05:00:00 GMT");
Header ("Cache-control:no-cache, must-revalidate");
Header
Recently many netizens came to ask me how to use PHP to crawl other web site news, I began to worry about infringement, has not been public. But asked too many people, here I give an example----how to crawl "Shenzhen window" news, for everyone to
File
(PHP 3, PHP 4 >= 4.0.0) file--read the entire file to an array description
Array file (string filename [, int use_include_path])
In addition to the file () returns an array, the other is the same as the Web site building Server scripting Class \
Login page (LOGIN.PHP3)
This script is used to enter a password for the user and to determine if the password is correct.
If it is correct, go to the Welcome page.
if ($login) {
Include (".. /include/config.inc.php3 ");
Session_Start ();
$right
3. Database design
The key is the MySQL efficiency problem, the reasonable allocation of MySQL memory, especially the table cache
Size. In addition, when the system suddenly power down? is MySQL robust?
Table name design, using a prefix to indicate
Take the data from the database and put it in the table. PHP has its own method, such as Odbc_result_all (), which is used to convert the obtained data into an HTML table format, but it must be the selected field in the SQL statement, and the data
6. Bbsd and cq66 server-side Retrofit
Bbsd, the module about the user should be better changed, as long as it will be written. The operation of the passwd file is changed to
You can manipulate the member functions of the Usermanage class of the
For people who have used C/s, the menu selection function is the most basic operation, in PHP, it is also easy to implement the menu function, the method is as follows:
menu.php:
//
Author: Christine
Email:greenchn@163.net
//
Class Menu {
var
This article is a small program to extract text from a batch of news pages, which can save the content of each piece of news as a text file with the title of the news as the file name. If you have a better approach, please contact
/* +-------------------------------------------------------------------------------+ | = This is haohappy read
> | = Notes in Classes and objects Chapter | = Translation-based + personal experience | = Please do not reprint in order to avoid the
Date synthesized by year, month and day
function DateSerial ($nyear, $nmonth, $nday)
{
Return date ("Y/n/j", Mktime (0,0,0, $nmonth, $nday, $nyear));
}
$now _rq=date ("y/n/j");//go to the present date
$year =date (Y);//Acquired year
$month =date (m)
The following is a pagination sample program, may seem cumbersome, but in fact, you can only use it to find that "everything is simple":)
example.php
$conn = Ociplogon ("Test", "123456", "test123");
Include_once "pager.inc.php";
?>
/** page Test
PHP counters
$counterFile = "Balong.txt";//the file name of the stored value several paths
function Displaycounter ($counterFile) {
$fp = fopen ($counterFile, "RW");
$num = Fgets ($fp, 5);
$num + = 1;
Print "You are the first". " $num "." A guy
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