url 반복 실행 관연 질문입니다. 채택완료
narasarang
11년 전
조회 4,225
안녕 하세요.
제가 원하는 것은 http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=1">http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=1
부터 http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=10">http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=10 까지 10개의 url 을 실행(url로 방문)만 하면 되는건데 아래 소스로 해봤더니 실행이 안되는거 같아서 질문드립니다. 10개 url 방문만 하면 되는것입니다.
</div>
<div><?
include_once("./_common.php");
for($wr_id=1; $wr_id<=10; $wr_id++)
{
$url="<a href="<a href="http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=$wr_id" target="_blank" rel="noopener noreferrer">http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=$wr_id</a>"><a href="http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=$wr_id" target="_blank" rel="noopener noreferrer">http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=$wr_id</a></a>" ;
}
?></div>
<div>
댓글을 작성하려면 로그인이 필요합니다.
답변 3개
채택된 답변
+20 포인트
11년 전
이런 트래픽유발 행위를 하는 목적이 무엇인지 모르겠지만 저렇게 한다고 해도 에러날 일은 없습니다
에러 문구라도 있어야 원인을 알 수 있을 텐데요
짐작으로는 wr_id가 1~10까지 빠짐없이 존재하지않는 경우 즉 삭제가 있는 경우
해당 부분은 당연히 페이지가 열리지 않을 것입니다
width , height 값을 약간 크게 해보면 상황을 알 수 있겠군요
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
11년 전
말씀드리면 글쓰기 수정 url 인데요 아래 소스를 실행을 하면 글쓰기 수정페이지로 방문만 하는 소스 입니다.
http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=1">http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=1 방문했다가
http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=2">http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=2 방문하고....
http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=10">http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=10 방문하는 형태인데요 자꾸 에러가 나네요 session 문제 인가요? 알려주시면 감사하겠습니다.
include_once("./_common.php");
if ($is_admin){
if ($w == "u")
{
for($wr_id=1; $wr_id<=10; $wr_id++)
{
$url="http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=$wr_id">http://aaa.com/bbs/write.php?w=u&bo_table=test&wr_id=$wr_id";
echo "";
}
}
}
?>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인