phpÕýÔòÌæ»»ÔÚÕýб¸Üǰ¼ÓÒ»·´Ð±¸Ü
<?php
// create a new curl resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.baidu.com/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
// grab URL and pass it to the browser
$str=curl_exec($ch);
$str=preg_replace("/\//","\\\/",$str);
?>
<script>alert(" <?php echo $str ?>"); </script>
<?php
// close curl resource, and free up system resources
curl_close($ch);
?>
alertÔõô³ö´í°¡
ºÃÀÛ°¡ ÏÈÐÝϢһϠÔÙ¿´lzÎÊÌâ
ÎÒ¶¥
¾ÍÄÇô¸öÌæ»»£¬ÓÃÕýÔò£¿
{{
Ïà¹ØÎÊ´ð£º
ÔÚ¹úÍâµÄ¿Õ¼ä£¬ÆäËüµÄphpÕ¾µã¶¼Õý³££¬¿ÉÖ»ÓÐ×î½ü½¨µÄÕâ¸öÕ¾µã£¬Ö»ÒªÒ»ä¯ÀÀphpÎļþ¾Í³öÏÖÏÂÔØÌáʾ£¬ÏÂÔØÏÂÀ´µÄÎļþ¶¼ÊÇ´øÓÐphpÔ´Â룬¸÷λ·¹ýµÄ£¬°ï°ïÎÒ£¬¿´¿´Ê²Ã´ÔÒò£¬ÏÈлÁË¡£
¿ÉÄÜÊÇÒòΪ¸ÃÕ¾µãûÓÐÄãÏëÒªµÄä¯ÀÀÆ ......
<!--¹ºÂòÊýÁ¿-->
<div class='buyinfo'>
<table width='auto'>
<tr>
<td><span>¹ºÂòÊýÁ¿£º</sp ......
ÇëÎÊ
object(Helper_Uploader_File) {
protected '_file' => array(
'name' => string '4_¹âÓ°_1.jpg' (length=14)
'type ......
ÏÂÃæÊÇÓÃÍøÉÏËÑÀ´µÄÒ»¶Î´úÂë
<html>
<head>
<title>PHP·ÖÒ³</title>
</head>
<body>
<?
//ΪÁ˱ãÓÚÀí½âºÍ¸ü¿ìµØÓ¦Óõ½¹¤ ......
ÀýÈ磺
±ÈÈçÎÒµÄij¸öurl£¬
http://127.0.0.1/xxx/xxx.php?action=gg
ÊÇÈ¥Ö´ÐÐxxx.phpÖÐij¶Î´úÂë
if ($action == ....) {
...
...
return $arr;
}
¡£
ÎÒÔ ......