|
|
brocksamsung
from the forest (United States) on 2008-08-02 08:23 [#02227165]
Points: 159 Status: Regular
|

|
dads got real problems. problems with php not doing what it's TOLD.
this is what I get after submitting an email to this mailing list thing. it successfully saves the email address to the list. but rather than jumping back to the original form or whatever.. this crappy message pops up..
"Warning: Cannot modify header information - headers already sent by (output started at /mnt/local/home/bbpwc/bbpwc.com/mlist/place.php:2) in /mnt/local/home/bbpwc/bbpwc.com/mlist/place.php on line 23"
checked out line 23 and everything seems all gravy there.
the thing that really tosses my salad is that it works perfectly fine on the old bootlegs web space here:
http://www.bootlegsbypeoplewhocare.net/mlist/email.php
but doesn't work on the new space there. wtf.
http://www.bbpwc.com/mlist/email.php
please help me. this is really frustrating.
|
|
oxygenfad
from www.oxygenfad.com (Canada) on 2008-08-02 08:50 [#02227174]
Points: 4442 Status: Regular
|

|
paste bin your code
<--- php master
|
|
oxygenfad
from www.oxygenfad.com (Canada) on 2008-08-02 08:52 [#02227175]
Points: 4442 Status: Regular
|

|
Seems like and easy fix, check this site. LAZY_TITLE
|
|
oxygenfad
from www.oxygenfad.com (Canada) on 2008-08-02 08:53 [#02227176]
Points: 4442 Status: Regular
|

|
"and easy fix "??? For the record, I look at my keyboard when I type and I do not proof read.
|
|
SlipDrinkMats
from Thanks (Bhutan) on 2008-08-02 08:54 [#02227177]
Points: 1744 Status: Regular
|

|
I'm not a SUPER expert but that means that in "place.php" (possibly on or before line 23) it's calling header, after some other output has been passed, you have to have the "header" code at the very top of your... code, look out for an includes that come before as well that might be writing something before header is .. called.
Sorry, not very well worded, try: http://cl.php.net/header
|
|
BoxBob-K23
from Finland on 2008-08-02 09:47 [#02227188]
Points: 2440 Status: Regular
|

|
ah crap I hate PCP
LAZY_PCP
LAZY_peeceepee
|
|
oxygenfad
from www.oxygenfad.com (Canada) on 2008-08-02 10:32 [#02227194]
Points: 4442 Status: Regular
|

|
I tricked you, I know barely any php.
|
|
Ego
from Antwerpen (Belgium) on 2008-08-02 10:41 [#02227195]
Points: 168 Status: Lurker
|

|
What SlipDrinkMats said. You can't modify header information after your output started. Also, setting cookies is modifying headers. So look for header() or setcookie() function calls.
You should also be carefull with things like: //code ?>
//modify headers ?> Because that empty line is output.
The reason for it to work on some webservers and not on others is the PHP configuration property output_buffering. If output_buffering is enabled you'll avoid problems like this. So if you have php.ini access you can change this value or try and use ini_set.
|
|
Ego
from Antwerpen (Belgium) on 2008-08-02 10:41 [#02227196]
Points: 168 Status: Lurker
|

|
Lol it stripped my PHP code.
|
|
brocksamsung
from the forest (United States) on 2008-08-02 18:45 [#02227261]
Points: 159 Status: Regular
|

|
how do I know if I have access to php.ini? I use dreamhost to host my site. I can not find any configuration settings for php through the log in interface on the site. and I don't see any files called php.ini in anywhere when I access the space via ftp.
how do I go about using the ini_set?
|
|
gron
from Hotel Bloedel (Austria) on 2008-08-02 22:32 [#02227270]
Points: 93 Status: Lurker
|

|
lol u r albert frum modrnrdio
|
|
brocksamsung
from the forest (United States) on 2008-08-03 02:03 [#02227276]
Points: 159 Status: Regular
|

|
you are from there too? what the frack! heh.
hi*
|
|
Ego
from Antwerpen (Belgium) on 2008-08-04 10:48 [#02227501]
Points: 168 Status: Lurker | Followup to brocksamsung: #02227261
|

|
Put this at the top of your script:
ini_set("output_buffering","On");
|
|
Messageboard index
|