xuandac Posted August 3, 2006 Share Posted August 3, 2006 Hi !I'm studying PHP, I want some one help me this problem.in PHP have function same sessiontimeout function in ASP.Thank you very much ! Link to comment Share on other sites More sharing options...
justsomeguy Posted August 3, 2006 Share Posted August 3, 2006 You can use ini_set to set the session.gc_maxlifetime option. It is in seconds, and it defaults to 1440 seconds, or 24 minutes. The session.gc_maxlifetime setting determines when session data is marked as garbage and cleaned up by the garbage collector.ini_set("session.gc_maxlifetime", 1440); //sessions get cleaned up after 24 minutes Link to comment Share on other sites More sharing options...
xuandac Posted August 7, 2006 Author Share Posted August 7, 2006 Thanks JustsomequyBut I don't know that How do you do to catch event session timeout ? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 7, 2006 Share Posted August 7, 2006 I don't think there is an event handler for the session timeout, the garbage collector just automatically cleans everything up. Link to comment Share on other sites More sharing options...
xuandac Posted August 8, 2006 Author Share Posted August 8, 2006 I am creating a forum, and I want to count members online but I don't know how do it ?who can help me.Thanks ! Link to comment Share on other sites More sharing options...
justsomeguy Posted August 8, 2006 Share Posted August 8, 2006 When people load a page, put an entry in the database or a log file on something like their IP address, and a timestamp of the current time. Then, you can show stats like "users online in the last 15 minutes" or something like that, where you can just get all of the users with timestamps less than 15 minutes old. Link to comment Share on other sites More sharing options...
tyler Posted August 8, 2006 Share Posted August 8, 2006 Sorry to interupt but is there like a way to show the person ip in javascript? Like that browser code? Link to comment Share on other sites More sharing options...
aspnetguy Posted August 8, 2006 Share Posted August 8, 2006 Please post that question in the javascript forum. Please don't ask new questions in someone else's thread. Thanks. Link to comment Share on other sites More sharing options...
tyler Posted August 8, 2006 Share Posted August 8, 2006 Sorry I just saw that you made a couple posts in the forum i made and right when i was about to edit my post you beat me 2 it. Damn dial-up Link to comment Share on other sites More sharing options...
xuandac Posted August 9, 2006 Author Share Posted August 9, 2006 Thanks everyone ! Link to comment Share on other sites More sharing options...
xuandac Posted August 9, 2006 Author Share Posted August 9, 2006 Who can help me .At page php connect to Mysql, when it run then have Error :Could not connected to serverPHP Warning: Unknown(): Unable to load dynamic library './php_msql.dll' - The specified module could not be found. in Unknown on line 0Thanks ! Link to comment Share on other sites More sharing options...
reportingsjr Posted August 9, 2006 Share Posted August 9, 2006 You know.. I just posted this. Check out my topic, I even posted the compltee code for it . Just ask if you need the db structure..http://w3schools.invisionzone.com/index.php?showtopic=6188 Link to comment Share on other sites More sharing options...
justsomeguy Posted August 9, 2006 Share Posted August 9, 2006 For the mysql error, it sounds like the required files are not on the server. Did you install PHP yourself? Link to comment Share on other sites More sharing options...
xuandac Posted August 10, 2006 Author Share Posted August 10, 2006 I installed PHP v4.2.1. but disconnect to MySQL Link to comment Share on other sites More sharing options...
justsomeguy Posted August 10, 2006 Share Posted August 10, 2006 I don't understand what you mean by that, did you remove the mysql DLL file? Or never had it to begin with? It looks like it is trying to load the extension, but unable to find the DLL. The path to extensions in php.ini might not be correct. Search your computer for php*.dll and see where your extensions are living, and make sure the correct path is in php.ini. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now