채택완료
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=10 까지 10개의 url 을 실행(url로 방문)만 하면 되는건데 아래 소스로 해봤더니 실행이 안되는거 같아서 질문드립니다. 10개 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=10 까지 10개의 url 을 실행(url로 방문)만 하면 되는건데 아래 소스로 해봤더니 실행이 안되는거 같아서 질문드립니다. 10개 url 방문만 하면 되는것입니다.
Copy
<?include_once("./_common.php");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" ;}?>
|
답변 3개
채택된 답변
+20 포인트
말씀드리면 글쓰기 수정 url 인데요 아래 소스를 실행을 하면 글쓰기 수정페이지로 방문만 하는 소스 입니다.
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";
echo "<iframe src=\"".$url."\" width=\"1\" height=\"1\"></iframe>";
}
}
}
?>
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";
echo "<iframe src=\"".$url."\" width=\"1\" height=\"1\"></iframe>";
}
}
}
?>
답변을 작성하려면 로그인이 필요합니다.