PDA

View Full Version : سوال: اروری که تاحالا ندیده بودم !



kingwolf11
پنج شنبه 30 مرداد 1393, 11:02 صبح
با عرض سلام و وقت بخیر. دوستان بنده در یک فایل کانفیگ هم session_start() و هم ob_start() رو زدم . به طور کلی پوشه بندی به شکل زیر هستش
root
config.php-----
admin-----
tmp-file-------------
header.php----------------------
index.php-------------
سپس تو فایل هدر.پی اچ پی اومدم و گفتم :



if(!isset($_SESSION['admin_login'])) {

header("location:login.php");

}

حالا من تو فایل ایندکس اومدم اینو اینکلود کردم . ولی زمانی که میام تو پوشه ادمین بدون لاگین میاد بهم ارور میده که تاحالا ندیدم :



Warning: session_start() [function.session-start (http://tandishonar.ir/management/function.session-start)]: Cannot send session cookie - headers already sent by (output started at /home/tandisho/public_html/admin/index.php:1) in /home/tandisho/public_html/config.php on line 2

Warning: session_start() [function.session-start (http://tandishonar.ir/management/function.session-start)]: Cannot send session cache limiter - headers already sent (output started at /home/tandisho/public_html/admin/index.php:1) in /home/tandisho/public_html/config.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /home/tandisho/public_html/admin/index.php:1) in /home/tandisho/public_html/admin/tmp-file/header.php on line 5


کسی میدونه چشه ؟؟؟؟؟؟
با تشکر فراوان

DR.HTML
پنج شنبه 30 مرداد 1393, 11:29 صبح
http://barnamenevis.org/showthread.php?356992-%D9%BE%D8%B1%D8%B3%D8%B4%D9%87%D8%A7%DB%8C-%D8%AA%DA%A9%D8%B1%D8%A7%D8%B1%DB%8C