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
After a period of time the crazy PHP programming, the configuration of the PHP under the Windows platform is a deep feeling, at first I used a one-click installation of the Fool pack, but consider the Idiot pack installed version has lagged behind,
PHP is a server-side scripting language that is easy to learn and use. With minimal programming knowledge, you can use PHP to build a truly interactive web site. This tutorial does not want you to fully understand the language, but it will allow you
(mainly using two string functions implode () and explode)
I made the domain name query source code, mainly with two string functions implode () and explode, using these two functions of the powerful function of cutting strings can be queried.
File name: date.inc.php3
Before using these two functions, convert the date or datetime to the timestamp type.
Such as:
$today =mktime (0,0,0,date ("M"), Date ("D"), Date ("Y"));
/**** simulation of DATEADD functions in SQL Server *******
$part
Use PHP to call the database storage process!
Author: fox4000
Yesterday, see a comrade asked if you can use PHP to call the storage process, the feeling should be able to, so, immediately carried out the experiment, very successful! It was a very
"Simple text typesetting by VB code"
Reason: 1.1. The 4 version does not have these, and the domestic more famous Ubb hack House adds a lot of UBB code (VB code) for the text typesetting.
Advantages: Only a few lines, can be achieved, very
PHP Online Survey System
This is a simple voting procedure, for just learning PHP and friends is a very good entry program. Here to introduce you, hope to be helpful to friends.
The system is composed of the following four files: The survey.htm of
Apache installed, finally can get started to get PHP, then we start. First of all the previous download good Php-5.2.0-win32.zip decompression, directory words with you like, I here for the convenience of explanation, unzip to D:\php5 good. If you
UNTITLED
Include "connect.inc.php";
if ($subject) {
$query = "Select Name,email from User";
$res = mysql_query ($query);
$row = Mysql_fetch_array ($res);
while ($row) {
Mail ($row [' email '], $subject, $row [' name ']. ": N". $text. " N China
Copy CodeThe code is as follows:
Class Ctbclass {
var $file;
var $index;
Create a file and write the input
function Null_write ($new)
{
$f =fopen ($this->file, "w");
Flock ($f, LOCK_EX);
Fputs ($f, $new);
Fclose ($f);
}
Add data record to end of
PHP as a server-side scripting language, like writing simple, or complex dynamic Web pages such a task, it is fully capable. But this is not always the case, sometimes in order to achieve a function, you have to rely on the operating system external
Check the code of his landing page to see which page he submitted to and what the variable is.
Copy CodeThe code is as follows:
Obviously, if you want to log in, you need to post the username, passwd, and submit variables to login.jsp, and
You can use the following functions to implement:
function Posttohost ($url, $data) {
$url = Parse_url ($url);
if (! $url) return "couldn ' t parse url";
if (!isset ($url [' Port ']) {$url [' port '] = "";}
if (!isset ($url [' query '])) {$url ['
Copy CodeThe code is as follows:
/**
* Page function: Common Forms Validation Class
* Author: Gladly with the wind
* Setup Time: 2006-3-6
* qq:276624915
*/
Class Class_post
{
Verifies whether a combination of letters/numbers of a specified
Copyright can be set to hide in CSS. The file cannot be deleted because it is Zend, and it is not recommended.
1. Hide the copyright method under X-space personal space
Modify/css/space.css to find the following code:
/* Footer
php--the function of the following class is very powerful, not only can send HTML-formatted mail, you can also send attachments
How to use:
Copy CodeThe code is as follows:
Include "Email.class"
$mail->setto ("a@a.com"); Recipient
$mail-SETCC
Today carefully studied the next GD of some related technology, handy also study GD Chinese garbled problem.
Using the GD library to output Chinese strings, it is useless to call imagestring. You need to use the Imagettftext () function. The
Today, someone phpchina ask me about PHP, how to do XML? , and the corresponding solutions have been given above. By the way, let's talk about PHP's input and output streams.
Today's summer vacation in the company, just when colleagues use flash to
Use PHP to control user's browser--ob* function
The output control function gives you the freedom to control the outputs of the data in your script. It is very useful, especially when you want to output a file header after the data has
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