rpm -q php says I have version 4.1.2 of PHP but phpinfo() says I have version 4.0.4 (which unfortunately apparently aren't 100% compatible). Anyway, my code has worked fine with PHP 4.2.2 on Mac OS X but is killing me on Linux (whichever version it is running):
1.php
<? session_start();?>
<?
$_SESSION['username']='bob';
?>
<html><a href="2.php">Next</a> </html>
2.php
<? session_start();?>
<html>
<? echo $_SESSION['username']?> <br>
</html>
And it echos nothing on the screen. I have created these two files in vi on Linux so there are no straggling CR/LF issues --am I missing something here??