PHP 기본 인증 통과

PHP 기본 인증 통과

1 소스 코드[ | ]

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://zetawiki.com/ex/php/auth_basic.php");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, 'jmnote:P@ssw0rd');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$content = curl_exec($ch);
curl_close($ch);
echo $content;

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}