Jump to content

Recommended Posts

Posted

I have a website, www.tzitut.com

 

I'm having a problem here, since it's encoded in UTF-8

 

When making a simple file, and saving it with UTF-8 encoding, cookie-placement generates an error. (or any other header change)

 

for instance:

file.php

---------------

<?php

setcookie("b","a");

?>

----------------------

 

found on link: www.tzitut.com/V2/file.php

 

generates the following error:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/V2/file.php:1) in /home/***/public_html/V2/file.php on line 2

 

----------------------

 

when encoding is changed to ANSI, the error disappers.

 

however, that is not an option, since the website and system is coded in UTF-8.

 

What do I do?

 

-Dan.

 

 

Edited by TCH-Thomas

Posted

Hello and welcome to the forum, Dan. :)

 

I don´t know the answer to this but hang on, someone will figure it out.

 

I have removed the cpanel username mentioned in the post for protection.

Posted

Welcome to the forum, Dan :w00t:

That error usually happens when you try to use header and

there is a space some where in your code before the header tag

and that counts as output.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...