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

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

lior19901 16-05-07 22:37

בעיה ב haders!
 
שגיאה:
קוד:

Warning: Cannot modify header information - headers already sent by (output started at /home/lior/domains/lior.wise-host.co.il/public_html/php/style.inc:1) in /home/lior/domains/***/public_html/php/protect.php on line 87
השורה 87:
PHP קוד:

      header("Location: ".$_SERVER["PHP_SELF"]);  //reloading the page again, to avoid from the POST data of the form to be sent again on refresh 

מה הבעיה בשורה?

לא יודע עם צריך תקובץ style.inc אבל בכל מיקרה:
קוד:

<style type='text/css'>
* {
font-size:13px;
font-family:verdana;
}

.subject {
font-size:16px;
font-family:verdana;
color:#00009C;
font-weight:bold;
}
a{ text-decoration: none;font-weight:bold;  color: #00009C; }

a:hover{ text-decoration: underline;  }

input{ background:FFFFFF; ;border-width:1px; ;border-color:black; }

select{ background:reed; border-width:1px; ;border-color:black; }

textarea{ background:#ffffff; border-width:1px; ;border-color:black; }

option{ background:#ffffff; border-width:1px; ;border-color:black; }

table{ font-size:13px; }
</style>


O-B 16-05-07 23:01

תכתוב בשורה הראשונה של העמוד את זה:
PHP קוד:

<?php ob_start(); ?>


lior19901 16-05-07 23:13

תודה אחי !!
מה זה עושה:
ob_start

O-B 16-05-07 23:24

ציטוט:

נכתב במקור על ידי lior19901 (פרסם 478896)
תודה אחי !!
מה זה עושה:
ob_start

נותן להדרים headers להישלח גם מאמצע הדף..

lior19901 16-05-07 23:25

הבנתי תודה!


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

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