Help Please

Started on the old forum in July 2008 · view the original in the archive · old links redirect here

5 replies · 604 views · started 18 years ago · 1 min read

2 participants
djdevil89 Senior · 287 posts #1

Hello all i am writing a new script in flatfile but i got a problem when i want to login it gives me this

Warning: Cannot modify header information - headers already sent by (output started at /home/wapme/public_html/new/log.php:2) in /home/wapme/public_html/new/log.php on line 3

What could d error be? please help anyone

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Guest #2

add this in .htaccess file

CODEphp_flag display_errors On php_value error_reporting "NULL" php_value output_buffering 4096 Note: If you have any errors in your scrip, it won't show, just a blank page. or just add and it will still show the errors CODEphp_value output_buffering 4096

Worked for me.

Hope this helps.

djdevil89 Senior · 287 posts #3

i have atacched an screenshot of what itgives me now hope that helps in helping me of course i will release the script here when its ready

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Attachments: 222.jpg
djdevil89 Senior · 287 posts #4

i have atacched an screenshot of what itgives me now hope that helps in helping me of course i will release the script here when its ready

Btw its based on the wappy script but only based

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
rukiya Lead · 569 posts #5

Hello all i am writing a new script in flatfile but i got a problem when i want to login it gives me this

Warning: Cannot modify header information - headers already sent by (output started at /home/wapme/public_html/new/log.php:2) in /home/wapme/public_html/new/log.php on line 3

What could d error be? please help anyone

php starting tag <?php of log.php is in the 2nd line of the page causes this error.put your mouse just left to the <? and press backspace then save the page

i have atacched an screenshot of what itgives me now hope that helps in helping me of course i will release the script here when its ready

put this line after <?php

header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
header("Content-type: text/vnd.wap.wml");header("display_errors=0");
djdevil89 Senior · 287 posts #6

php starting tag <?php of log.php is in the 2nd line of the page causes this error.put your mouse just left to the <? and press backspace then save the page put this line after <?php

header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
header("Content-type: text/vnd.wap.wml");header("display_errors=0");

Thanx working now

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close