SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Hybrid View

  1. #1
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  2. #2
    SitePoint Member
    Join Date
    Sep 2000
    Location
    Right here
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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:

    <?
    phpinfo();
    ?>

    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.

    HTH


    [Edited by linkstream on 09-14-2000 at 12:42 AM]
    LinkStream Internet Services
    Virtual Hosting, Bulk Reseller Accounts
    Hosting Excellence Since 1999

  3. #3
    SitePoint Wizard jumpthru's Avatar
    Join Date
    Apr 2000
    Location
    Los Angeles, California
    Posts
    1,008
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can someone give an explantatino about sessions and how to use them? Thanks.

  4. #4
    SitePoint Member
    Join Date
    Sep 2000
    Location
    Right here
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.zend.com/phorum/list.php?num=3
    http://www.phpbuilder.com (forum links are on right side of home page)


    There are other resources out there, but these are a start.



    LinkStream Internet Services
    Virtual Hosting, Bulk Reseller Accounts
    Hosting Excellence Since 1999

  5. #5
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    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!

    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  6. #6
    SitePoint Member
    Join Date
    Sep 2000
    Location
    Right here
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.)
    LinkStream Internet Services
    Virtual Hosting, Bulk Reseller Accounts
    Hosting Excellence Since 1999

  7. #7
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  8. #8
    SitePoint Wizard jumpthru's Avatar
    Join Date
    Apr 2000
    Location
    Los Angeles, California
    Posts
    1,008
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •