I have it in a php script, on my desktop, the script is running fine.
But on my laptop, and other desktop (not the one I used to develop the script), when tried to run the script, got the problem: Fatal Error, call to undefined function session_is_registered() (or sth like that, I don't remember word by word)
And my host supports php4
And it's pretty weird since php is server-side, and there shouldn't be any problem with client-side!!!
Anybody has any idea about this?
Make sure your host in fact has php4 installed on their server. (Some hosts add the .php extension as a mime type for the php3 engine and you can get fooled.) You can check the version yourself by creating a simple script with the following code:
and then upload it with a .php extension and point your browser to it. You'll get a comprehensive display of the php configuration info. The version number will be prominently shown at the top. There was a beta version of php4 that didn't have sessions enabled. Version 4.02 is the latest release.
If it displays as v4.02, then there's probably a misconfiguration on the server. Contact your host and have them review the installation.
[Edited by linkstream on 09-14-2000 at 12:42 AM]
Can someone give an explantatino about sessions and how to use them? Thanks.
jumpthru, the following links may be helpful:
Webmonkey article (especially Section 6): http://hotwired.lycos.com/webmonkey/...tw=programming
And these tech forums:
http://www.phpbuilder.com (forum links are on right side of home page)
There are other resources out there, but these are a start.
So what do you explain about other session calls I have?
I have session_start,destroy,.... all are only available in php4
And the second thing is it's true php4, of course I have checked the config page.
And it's only happen with the call session_is_registered(), and it DOES work only on my pc, not other machine!
It might be helpful to post the exact error message you're getting, along with a code snippet containing the call. (Use the snippet from the server that's giving you the error, not the one where it works.)
Anyway, I fixed the code by using a work around, don't need the call session_is_registered() anymore, so everything is fine, but it's still pretty weird with such a server-side script though
And thanks for your helps!
Actually the phpsessions is not server side since it has to set a cookie. Meaning for some reason your other machine wont let it set a cookie...