הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   בעיה בקובץ logout.php (https://hosts.co.il/forums/showthread.php?t=36429)

GalN 19-12-06 11:29

בעיה בקובץ 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


מה אני עושה עכשיו?


תודה מראש לעוזרים!

Tomer 19-12-06 11:32

תתחיל בליצור את הקובץ common.php , אני לא מבין איך אתה עושה include לקבצים בלי שהם קיימים ? או שזו לא מערכת שלך ?

ViPeRt 19-12-06 11:40

ובשביל הארור האחרון תוסיף בתחילת הדף:

PHP קוד:

ob_start(); 


GalN 19-12-06 11:44

ViPeRt תודה,
ויש את הcommon.php
אני לא יודע למה אבל זה לא קורא אותו...

עריכה: הסתדר תודה ענקית ל-ViPeRt!!!!


כל הזמנים הם GMT +2. הזמן כעת הוא 15:54.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ