ÀýÈ綨Òåij±äÁ¿ $test Ö±½ÓÊä³öÖ¸¶¨µÄphp»òhtmlÎļþ£¿ лл¡£
ʲôÒâ˼£¿
ÎÒÊÇÏ룬¶¨ÒåÒ»¸ö±äÁ¿ Õâ¸ö±äÁ¿µÄÖµÊÇÖ¸¶¨ÎļþµÄÄÚÈÝ£¬
¿ÉÒÔд¸öº¯Êý Ö±½Óµ÷ÓÃ
<?php
function test(){
header('Location:http://www.baidu.com');
}
test();
?>
<?php
$a = "<script>location.href='http://www.baidu.com'</script>";
echo $a;
?>
ÊÔÊÔÕâÑù
лл
ÎÒÊÇÏ붨ÒåÒ»¸ö±äÁ¿£¬Äܹ»Ö±½ÓÊä³öÖ¸¶¨ÍøÒ³µÄÄÚÈÝ
ÀýÈçecho $a $aµÄֵΪ 1.html Õâ¸öÎļþµÄÖµ
PHP code:
<?php
//ÊÇÕâÑùµÄô£¿È·ÊµÃ»Àí½âÂ¥Ö÷µÄÒâ˼¡£
$base_url = ""; //1.html ËùÔÚĿ¼
$a = file_get_content($base_url."1.html");
echo $a;
?>
¿ÉÒÔ¿ÉÒÔ£¬ÏȰÑÎļþÄÚÈݶÁµ½Ò»¸ö±äÁ¿ÀȻºóecho
+
<?php
$a = file_get_content("/dh/nav5.html");
echo $a;
?>
±¨´í¡£¡£/dh/nav5.html ȷʵ´æÔڵġ£
Fatal error: Call to undefined function file_get_content() in G:\freehost\test19\web\loadxml.php on line 2
¿´Ò»ÏÂÅäÖÃÎļþ
Ïà¹ØÎÊ´ð£º
1.¾«Í¨ÃæÏò¶ÔÏóµÄÉè¼ÆºÍ¿ª·¢£»
2.ÊìÁ·Ê¹ÓÃPHPÓïÑÔ(5.0+)½øÐÐÊý¾Ý¿â£¬ÍøÂçͨÐÅ£¬Îļþ¶Áд£¬°²È«»úÖÆµÈ¿ª·¢£»
3.ÊìÁ·Ê¹ÓÃMYSQL(5.0+)Êý¾Ý¿â¿ª·¢£¬°üÀ¨»ù±¾µÄÊý¾Ý¿âÉè¼Æ/ÓÅ»¯/°²È«£¬¸´ÔÓµÄT-SQLÓï¾ä±àд£¬ÊìÁ·±àдMYS ......
ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌø×ªÒ³Ãæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......
mssql_select_db("f1",mssql_connect("localhost","sa","sa"));
mssql_select_db("f2",mssql_connect("192.168.0.1","sa","sa") ......
ÔÚfirefoxä¯ÀÀÆ÷ÏÂÕý³£µÇ½£¬µ«ÔÚIE ä¯ÀÀÆ÷ÏÂÎÞ·¨µÇ½£¬Ã¿´Î¶¼»áÖØÐÂÉú³ÉÒ»¸ösession,ÔÀ´µÄÄÚÈݻᶪʧ¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£Ôõô»ØÊÂ......
¾ßÌåÇé¿ö£¿²Â²â¿ÉÄÜÊÇÄã±¾»úIEµÄcookie±»½ûÓÃÁ˰ɣ¬¿ÉÒÔ¿´¿´
cookie Æ ......
<?php
@session_start();
require_once './module/t_doctor.inc';
$t_doctor = new t_doctor();
if(isset($Submit)){
$sql="select * from t_doctor WHERE docname='".$usernam ......