phpµÄÊý¾Ý²Ù×÷ui
<?php
error_reporting(0);//7all,0no
ini_set('display_errors', '0');
function myerror($errno, $errstr, $errfile, $errline)
{
echo "<BR>error type: [$errno] $errstr<br />\n";
echo "in line $errline of file $errfile<BR>";
}
set_error_handler("myerror");
include("config.php");
$link = mysql_connect($dbhost,$dbuser,$dbpass)
or die("Could not connect : " . mysql_error());
mysql_select_db($dbname) or die("Could not select database");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
//Ôö¼ÓÈËÃû insert into `address2` (`sname`) values('ÈËÃû')
//ÐÞ¸Ä update `address2` set `sname`='ÈËÃû' where id='23'
//²éѯËùÓеıíÃû SHOW TABLES from u656b1_db
<form action="" method="post">
<textarea name="how" style="width:100%; height:100px;" onkeypress="if(event.keyCode == 10)submit.click();">
<?PHP
if (isset($_REQUEST["how"]))
{
echo $_REQUEST["how"];
}
?>
</textarea><br>
<input name=ip value="<?PHP
if (isset($_REQUEST["ip"]))
{
echo $_REQUEST["ip"];
}
?>">
<input type="submit" id="submit" value="Ìá½»">
</form>
<?php
function runsql()
{
if ($_POST["ip"] != "password")
{
echo 'ÃÜÂë²»ÕýÈ·.';
return(0);
}
$sql = $_POST["how"];
if ( $sql == "")
&
Ïà¹ØÎĵµ£º
<div id="time" align="center">time </div>
<script language="javascript">
function time1()
{
var now,n,y,r,h,m,s;
now=new Date();
n = now.getYear();
y = now.getMonth()+1;
r = now.getDate();
h = now.getHours();
m =now.getMinutes();
s = now.getSeconds();
......
<?php
/*
* Created on 2009-10-28
* ·Ö×ÓÈçÃÎo(╯¡õ╰)o
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
interface pusb{
function verson();
  ......
in_array(value,array,type)
in_array ×÷ÓÃÊÇÓÃÓڲ鿴 value ÊÇ·ñÔÚ array ÖдæÔÚ£¬Èç¹û²ÎÊý value ÊÇ×Ö·û´®£¬ÇÒ type ²ÎÊýÉèÖÃΪ true£¬ÔòËÑË÷Çø·Ö´óСд¡£Ôò in_array ÊÇ Çø·Ö´óСд µÄ¡£
ÓÐÒ»µãÐèҪעÒ⣬µ± array Öаüº¬ value µÄÖµ£¬Ôò·µ»Ø true£» µ«ÊÇ£¬Èç¹ûÁ½Õß²ÎÊýÖ®¼äÏàµÈ£¬Ôò·µ»Ø false
ÀýÈ磺
$str = 'a';
......
PHPÓкܶà»úÖÆ¡¢º¯Êý£¬Æäʵ¾ÍÊÇħÊõʦ£¬Öظ´·¢»ÓºÃ£¬ÆäʵÉõÖÁÊǼòµ¥Ó¦Ó㬾ͻá³öÏÖÉñÆæµÄЧ¹û¡£ÕâÀï½²Ò»¸öob_start()º¯Êý¡£
ob_start()º¯ÊýÓÃÓÚ´ò¿ª»º³åÇø,±ÈÈçheader()º¯ÊýÖ®
ǰÈç¹û¾ÍÓÐÊä³ö,°üÀ¨»Ø³µ\¿Õ¸ñ\»»ÐÐ\¶¼»áÓДHeader had all ready send
by”µÄ´íÎó,Õâʱ¿ÉÒÔÏÈÓÃob_start()´ò¿ª»º³åÇøPHP´úÂëµÄÊý¾ ......
$_SERVER['PHP_SELF']
#µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû£¬Óë document rootÏà¹Ø¡£
$_SERVER['argv']
#´«µÝ¸ø¸Ã½Å±¾µÄ²ÎÊý¡£
$_SERVER['argc']
#°üº¬´«µÝ¸ø³ÌÐòµÄÃüÁîÐвÎÊýµÄ¸öÊý£¨Èç¹ûÔËÐÐÔÚÃüÁîÐÐģʽ£©¡£
$_SERVER['GATEWAY_INTERFACE']
#·þÎñÆ÷ʹÓÃµÄ CGI ¹æ·¶µÄ°æ±¾¡£ÀýÈ磬“CGI/1.1”¡£
$_SER ......