Reply to Re: Problems setting cookie

Your name:

Reply:


Posted by Jerry Stuckle on 09/16/05 23:03

Tamer Higazi wrote:
> Hi!
> I wrote a small script setting a cookie.... but nothing is being set.
> What could be the problem?! Did I make something wrong?! One script is
> used to ask for the cookie and the other one shows the displayed
> variable in a string only! But if I look at Firefox in the cookie cache
> if the variables are set... I didn't find anything. what could be the
> problem?!
>
> Apache 2.0.54 with PHP 5.1 RC1 on Gentoo Linux 2005.1
>
> For any help... Thanks in advance
>
> Tamer
>

http://www.php.net/manual/en/function.setcookie.php

"setcookie() defines a cookie to be sent along with the rest of the HTTP
headers. Like other headers, cookies must be sent before any output from
your script (this is a protocol restriction)."

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация