Hello folks. I'm hoping there's a wise old buzzard out there who can advise me on this...
I'm building an intranet site, with content processed by php from
a mysql database. I'm running apache 1.3.12 on NT with php3 configured
to process .php3 files and php4 configured to process .php files.
The past week I've been trying to fix up some session and user management, with problems aplenty.
On php4, when I run a script such as:
<?php session_start();
if (!isset($counter))
{
$counter = 0;
}
?>
<head>
</head>
<body>
<?php
printf ("Our session ID is: %s<br>", session_id());
print("The counter value is: $counter");
$counter++;
session_register("counter");
?>
</body>
to test the session management, the session_id changes on every refresh
instead of the counter incrementing, as it should. Strangely, this worked okay the first time, and the second time didn't work at all
(although no changes to configuration had been made).
After a fruitless search for the reason for this, I decided to
go back to php3 (version 3.0.14 and use the phplib session management instead. It seemed to have more to it, in any case.
I installed the phplib as documented, and altered the relevent lines
in php3.ini so that prepend.php3 would be called up when any php3 file
was processed. This much works. I think the process actually fails somewhere in a document called page.inc
The first page to test with phplib is index.php3. When doing this the
message 'the page cannot be displayed' or 'the requested header cannot be found' appears. Somehow the header info does not get through.
I configured everything to the letter according to
http://phplib.netuse.de/documentation/documentation-1.php3
Maybe somebody can advise me where to go next?
I can't seem to get phplib or php4 session management working. Nightmare!
Yours sincerely
Rick