View Single Post

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

Terry Calie schreef:

....

>
> To illustrate my php goes like this:
>
> index.php
> =========
> <?php
> code
> code
> require "index2.php"
> code
> ?>
>
> index2.php
> ========
> <?php
> code
> code
> code
> ?>
> <whitespace character>


....

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 ----------------
Reply With Quote