session_start problems with FireFox on Mac

This is a discussion on session_start problems with FireFox on Mac within the PHP General forums, part of the PHP Programming Forums category; Jochem Maas wrote: > you also mentioned you changed the code when trying to test it on another > machine - ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 01-13-2008
Europus
 
Posts: n/a
Default Re: [PHP] session_start problems with FireFox on Mac

Jochem Maas wrote:

> you also mentioned you changed the code when trying to test it on another
> machine - don't do that, test one thing at a time.


I'm not the original poster, that wasn't me.

> anyway problem solved, preventative knowledge aquired, onto the next
> hurdle :-)


I'm having some trouble with a for() loop and echoing array results
to screen to see if I'm getting the data I'm after, I may post about
it later.

Ulex
Reply With Quote
  #12 (permalink)  
Old 01-13-2008
Jochem Maas
 
Posts: n/a
Default Re: [PHP] session_start problems with FireFox on Mac

Europus schreef:
> Jochem Maas wrote:
>
>> you also mentioned you changed the code when trying to test it on another
>> machine - don't do that, test one thing at a time.

>
> I'm not the original poster, that wasn't me.
>
>> anyway problem solved, preventative knowledge aquired, onto the next
>> hurdle :-)

>
> I'm having some trouble with a for() loop and echoing array results
> to screen to see if I'm getting the data I'm after, I may post about
> it later.


use var_dump() rather than echo.

>
> Ulex
>

Reply With Quote
  #13 (permalink)  
Old 01-14-2008
tedd
 
Posts: n/a
Default Re: [PHP] session_start problems with FireFox on Mac

At 3:50 PM +0100 1/13/08, Jochem Maas wrote:
>to avoid this in future never add the closing php bracket to the end of
>the php file (unless you explicitly want to output something after the
>code in question - which is almost never the case), it is not required.
>
>e.g.
>
>--------- >8 info.php ----------------
><?php
>
>phpinfo();
>--------- >8 info.php ----------------


It may be a religious argument, but I always close my scripts and I
know where the white space is.

Also, most of my code is used by other languages (i.e., html, js) so
a closing bracket is always required -- unless it's the last function
in a file, but I haven't checked to see if that works in all cases.
So, I just always close it correctly.

Cheers,

tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:19 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0