CopyCode The Code is as follows:
Class cat{Public $ data;
Public Function _ construct (){@ Include "data. php ";$ This-> DATA = $ class;}
Public Function createsortlevel ($ fatherlevel) { If (empty ($ fatherlevel )) { If (is_array ($ this->
5. run Apache in Windows NT
If you are running a Windows NT System, you may want to run Apache as a service process of the system. Click Start and selectProgram"," Apache Web Server "," insfall Apache as service ". In this way, you can manage
I,
Q: I have installed the Apache module for Unix by step, but the source code of my PHP script is displayed in the browser, or the browser prompts me to save the file. Why?
A: This is because the PHP module does not work properly. Check the
Code As follows:
$ Connid = @ odbc_connect ("jtfcht", "admin ","");
If ($ connid ){
@ Odbc_exec ($ connid, "delete * from room where (roomid not in (select distinct roomid from user) and roomid <> 1 ");
$ Result = @ odbc_exec ($ connid, "select
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 (@
Build a simple interaction website (5)
8. Voting System
In many cases, we need to collect opinions from Internet users and netizens. For example, comparison between the new page and the old page, views on a specific event, and predictions on
// A function in PHP that controls the output of strings (in Chinese and English). The number of words displayed in each line avoids the impact of English.
// $ STR string
// $ Len the number of words displayed per line (Chinese Character × 2)
I have been engaged in 3D animation many years ago. After learning PHP, I found that I can use PHP to dynamically generate the OpenGL document, which is a bit similar to the generator to dynamically generate flash.
Due to the wide and profound
PHP and XML: Use the expat function (3)
How to use this class in a PHP script? It is actually very simple. Here is an example:
First, the class definition needs to be included in the script.
Require (class_dir. "Class. newsboy. php ");
Then,
After searching for a long time, I finally found it for me! Haha...
// I heard that PhP4 also supports Java/EJB.
// This script is come from Zend.
$ Word = new COM ("word. application") or die ("unable to instancate word
");
Print "loaded word,
/**
* Automatically determines the PHP version and converts all environment variables to global variables.
*
* @ Author Avenger
* @ Version $ Id 13:01:14 $
*/
Function pmyoutput (& $ ){If (is_array ($ )){Array_walk ($ a, 'pmyoutput ');} Else {$ A =
PHP is the scripting language for weak variables. That is to say, you do not need to define them first, which is flexible. It can also give a lot of freedom, but for programs, freedom is not a good thing.
This is because it brings a lot of trouble
Cache refers to the temporary file exchange zone. The computer puts the most commonly used files out of the memory and puts them in the cache temporarily, just like moving tools and materials onto the workbench, in this way, it is more convenient to
Copy codeThe Code is as follows: Class SearchDomain
{
Var $ domain = "";
Function SetDomain ($ udomain)
{
$ This-> domain = $ udomain;
}
//
// Obtain whois and analyze the domain name status
// OK is not registered
// Non-null expiration time
//
Ajax is an asynchronous callback method!
It also works with transmission methods on the server side, such as GET or POST.
What I am talking about here is that when xml or json data is transmitted,
PHP differs from other server languages in that
INDEX. PHP
The Code is as follows!
Function delquot ($ sStr ){$ S = str_replace (chr (124), "", $ sStr );$ S = str_replace (chr (39), "", $ s );$ S = str_replace (chr (34), "", $ s );Return $ s;}
If ($ cmdYes = "inbound "){$ SUserName =
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