Re: Passing. Which method to use?
| From: | Floyd Baker | Date: | Tue, 22 Jan 2002 20:21:02 +0000 |
| Subject: | Re: Passing. Which method to use? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81589@lists.php.net to get a copy of this message | ||
On Tue, 22 Jan 2002 14:21:56 +0530 (IST), you wrote:
>Hi,
> I'm using sessions extremely to do that.
>
>with regards
>Sukumar .S
>On Tue, 22 Jan 2002, Floyd Baker wrote:
>
>> Date: Tue, 22 Jan 2002 01:17:18 -0500
>> From: Floyd Baker <fbaker@olm1.com>
>> To: php-general@lists.php.net
>> Subject: [PHP] Passing. Which method to use?
>>
>>
>> Hi once again.
>>
>> What's the consensus on the best way to pass arrays from page to page?
>>
>> By serializing? But I think it's not recommended?
>>
>> By writing then reading to a text file? Maybe?
>>
>> By inputting to and pulling from db records? Possibilities?
>>
>> Any other?
>>
>> Thanks in advance.
>>
>> Floyd
Ok then that makes it unanimous. I will use sessions...
Except it isn't working yet.
I have just put in 4.1.1 and everything seems good with that. I have
been able to pass vars using $_request() etc... But here is the
script I just now tested and it stays at the count of '1'. Other
sessions test scripts do not work either. I was not using sessions
before this install of 4.1.1 either.
Can there be anything, new or old, in 4.1.1 that I need to fix?
As with register_globals and whatever else that has been changed?
Here is the script straight off the tutorial:
//<? //'s here only.
// initialize a session
session_start();
// register a session variable
session_register('counter');
// increment and display the value of the counter
$counter++ ;
echo("You have visited this page $counter times! Don't you have
anything else to do, you bum?!);
//?>
Thanks.
Floyd
--