Re: PHP Problem

From: Date: Mon, 25 Feb 2002 19:44:59 +0000
Subject: Re: PHP Problem
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-8847@lists.php.net to get a copy of this message
Dear Adekunle adekoya rotimi, Remove the space in front of your opening PHP tag (<?). If there is a space or any other output sent to the browser before the setcookie call is made, the setcookie call with fail. Also, this is not the correct address for support questions. You should ask your questions on the PHP General mailing list (php-general-subscribe@lists.php.net) For more information visit http://www.php.net/support.php Yours Truly, Zak Greant On Mon, 2002-02-25 at 02:15, sirl sirl wrote: > > Dear Sir, > I am a new user of PHP and currently undertaking a web project > which I intend to implement with PHP.Really I used to program > with ASP but decided to migrate to PHP for its simplicity and > cross-platform advantages over ASp > I am ,however,stucked with cookie issue. > I type in the following code from notepad > > <? > setcookie ("names","kunle"); > ?> > > > <html> > <head> > </head> > <body> > hello > > </body> > </html> > > Then save the file and put it on my publishing folder only to > now go to my browser and view the result.but unfortunalety,this > is what i get > > > Warning: Cannot add header information - headers already sent > by (output started at C:\sirlweb\index.php:2) in > C:\sirlweb\index.php on line 3 > hello > > > Hope the way i called the setcookie function was okay? > pls kindly help me or direct my question to any one that could > help. > i am a web application developer from Nigeria. > My names are:Adekunle adekoya rotimi > > ________________________________________________ > Get your own "800" number > Voicemail, fax, email, and a lot more > http://www.ureach.com/reg/tag

« previous php.mirrors (#8847) next »