|
|
# 1 |
|
חבר בקהילה
|
בעיה בקובץ logout.php
אוקיי עשיתי דבר כזה:
קוד:
<?
session_start();
session_destroy();
include("include/common.php");
if ($loggedin){
if ($logout) {
$myname = "";
$myrights = "";
$myemail = "";
$loggedin = 0;
session_register("loggedin");
session_register("myname");
session_register("myuid");
session_register("myrights");
session_register("myemail");
$failed = 1;
}
}
header("Location: /index.php");
?>
עכשיו כשאני לוחץ על זה (דרך הקישור בבפאנל) זה עושה לי את זה: קוד:
Warning: main(include/common.php) [function.main]: failed to open stream: No such file or directory in /home/*****/domains/**********/public_html/admin/logout.php on line 4 Warning: main(include/common.php) [function.main]: failed to open stream: No such file or directory in /home/*****/domains/**********/public_html/admin/logout.php on line 4 Warning: main() [function.include]: Failed opening 'include/common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/*****/domains/**********/public_html/admin/logout.php on line 4 Warning: Cannot modify header information - headers already sent by (output started at /home/*****/domains/**********/public_html/admin/logout.php:4) in /home/*****/domains/**********/public_html/admin/logout.php on line 19 מה אני עושה עכשיו? תודה מראש לעוזרים! |
|
|
|
# 2 |
|
Whatever
|
תתחיל בליצור את הקובץ common.php , אני לא מבין איך אתה עושה include לקבצים בלי שהם קיימים ? או שזו לא מערכת שלך ?
__________________
תומר |
|
|
|
# 3 |
|
חבר מתקדם
|
ובשביל הארור האחרון תוסיף בתחילת הדף:
PHP קוד:
|
|
|
|
# 4 |
|
חבר בקהילה
|
ViPeRt תודה,
ויש את הcommon.php אני לא יודע למה אבל זה לא קורא אותו... עריכה: הסתדר תודה ענקית ל-ViPeRt!!!! Last edited by GalN; 19-12-06 at 11:47.. |
|
![]() |
| חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|