不過發現沒有很理想,因為很快就出現 yahoo的錯誤999 = =
大家可以試試看
有分兩個檔案,請放在網站根目錄下的test裡面
TEST1.PHP
<?php
session_start();
$seller = "lainjp98";//請輸入賣家帳號
//$fp = fopen("http://tw.user.bid.yahoo.com/tw/user/".$seller,"r");
$fp = fopen("http://tw.user.bid.yahoo.com/tw/user/".$seller."?userID=".$seller."&catID=&catIDselect=&clf=&u=:".$seller."&s1=ptime&o1=d&at=false","r");
$i = 0;
$j = 0;
while(!feof($fp)){
$read = fgets($fp);
$checkread = substr($read,0,14);
echo $read;
//echo ''.$checkread;
if($checkread ==' <td><a href=' and $i == 0){
if (@$read != $_SESSION['save'] and $_SESSION['check'] == '1'){
$check = 'yes';
$msg = explode ('"',$read);
echo $msg[1];
//header("Location: http://127.0.0.1/test/test2.php");
echo '<meta http-equiv="refresh" content="0'.';'.' url=http://127.0.0.1/test/test2.php?msg='.$msg[1].'">';
//echo '<meta http-equiv="refresh" content="5'.'; '.$msg[1].'">';
}
$_SESSION['save'] = $read;
$_SESSION['check'] = '1';
$i = 1 ;
}
}
fclose($fp);
echo $check;
?>
<meta http-equiv="refresh" content="4">
第二個檔案 test2.php 請這樣命名
<?php
$msg = $_GET['msg'];
//echo $msg;
$fp = fopen($msg,"r");
while(!feof($fp)){
$read = fgets($fp);
echo $read;
}
fclose($fp);
?>
當然這還很陽春,有望大家修改修改,呵呵
===================================
請問大大你的目錄伸縮是怎麼用的教一下~~
回覆刪除http://fq-story.blogspot.com/2009/07/new.html
回覆刪除這邊就可以使用摟