when I upload images, I got this error message and all the image on my album is not visable even up via ftp. But the image is there, it has been successfully uploaded on my server. any help, please.
"Warning: Cannot modify header information - headers already sent by (output started at /home/szuhan0/public_html/zenphoto/zen/config.php:199) in /home/szuhan0/public_html/zenphoto/zen/admin.php on line 93
"
here is my album
http://www.szuhan.com/zenphoto/index.php
Comments
I'm not sure, but perhaps you should try another ftp-program or change the upload method (ASCII / binar / auto) in your prog.
Maybe someone else has another idea?
Warning: Cannot modify header information - headers already sent by (output started at /home/szuhan0/public_html/zenphoto/zen/config.php:199) in /home/szuhan0/public_html/zenphoto/zen/auth_zp.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /home/szuhan0/public_html/zenphoto/zen/config.php:199) in /home/szuhan0/public_html/zenphoto/zen/auth_zp.php on line 23
to trisweb: I dont think there is a space between the <?php ?>, although I am quiet familiar with coding, I did only key in the filed that I need to without any extra space in the config.php and thank you for reply
Make sure there's no space before the <php or after the ?> . If you're familiar with coding, what's happening is that config.php is *somehow* outputting something (which means there's something outside the php tags, or the PHP is explicitly printing something, and if you didn't modify the code, then it doesn't do the latter, so it must be the extra space). The file config.php should have no output.
Just go to the end of the config.php file and delete everything after the ?> and everything before the <php
So to conclude: One of the way to avoid displaying:
Warning: Cannot modify header information - headers already sent by (output started) etc.
1- As mentionned, go at the top and the bottom of the code and clear the space before and after the <? ?>
2- Re-check the last page code you were working on (because it's where usually you will found 80% of the code problems) you did certainly put an ' instead of " somewhere, or forgot to add \n on a line or whatever.