1.全局变量<?phpclass MyClass{static $myStaticVariable=0;function myMethod(){print self::$myStaticVariable;}} $obj=new MyClass();$obj->myMethod();?>2.全局变量改变<?phpclass MyClass{static $mySta
1.test.html<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; ch
<?php$a=4;$b=2;if($a>$b){//header("location:test2.php");echo "<script>alert('test2');location.href='test2.php';</script>";}else {echo "<script>alert('test3');location.href='tes
<?php$upload_path=$_SERVER['DOCUMENT_ROOT']."/zcd/";$dest_file=$upload_path.basename($_FILES['myfile']['name']);echo$upload_path; echo"<br>"; echo$dest_file; if(move_uploaded_file($_FILES['my
<?php$conn=mysql_connect("localhost","root","");//$result2=mysql_db_query("hello_world", "insert into hello_table values ('add1',8)",$conn);// $result2=mysql_db_query("hello_world", "delete from he
<?php$conn=mysql_connect("localhost","root","");$result2=mysql_db_query("hello_world", "insert into hello_table values ('add',8)",$conn);$result=mysql_db_query("hello_world", "select * from hello_t
eclipse-php.zip:http://down.51cto.com/data/708608软件:drupal,XAMPP,twemehttp://down.51cto.com/zt/249/21.安装apachelocalhost,localhost,webmaster@localhost浏览器输入http://localhost/测试在httpd.conf文件里注意DocumentRoo
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号