You are here: Re: session IDs and the like « PHP Programming Language « IT news, forums, messages
Re: session IDs and the like

Posted by windandwaves on 11/07/04 11:31

HappyHourHotSpots.com wrote:
> I dont know why PHP is so picky, but on the top of every page i write
> that requires sessions the very first line is
>
> <?php session_start(); ?>
>
> and then i do everything else in a new <?php ?> block. I spent about
> 2 days figuring that out when i was teaching myself PHP and found that
> was the best way to do it. If anyone else knows a different method
> then please let me know.
>
> -Rick
>
> ----------------------------
> Looking for a place to drink tonight? Visit HappyHourHotSpots.com!

I dont think you have to. I think you had some script that accidentally
outputted something (e.g. a line or a space).

My scripts go like this

<?php
session_start();
...
.....
....
?>

and it works fine.

 

Navigation:

[Reply to this 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

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