| 
 Posted by windandwaves on 06/19/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.
 
[Back to original message] 
 |