View Single Post
ישן 28-04-06, 16:22   # 4
koren
חבר חדש
 
מיני פרופיל
תאריך הצטרפות: Apr 2006
הודעות: 19

koren לא מחובר  

ואיפה אני אמור להכניס את : <?php include "http://www.walla.co.il" ?>
בסקריפט הזה: <?php
function auth() {
header('WWW-Authenticate: Basic realm="My Protected Page"');
header('HTTP/1.0 401 Unauthorized');
echo 'Oops, you are not allowed to see that page ';
exit;
}
if (isset($_GET['logout'])) {
auth();
}
if ($_SERVER['PHP_AUTH_USER'] == "admin" && $_SERVER['PHP_AUTH_PW'] == "1234") {
echo "My Content FREE !!!";
}
else {
auth();
}
?>


אני מתכוון שאני רוצה שאם אם עושים שם משתמש וסיסמה נכונה זה יגיע לדף של וואלה!
אז איפה אני אמור להכניס תקוד הזה ??