Jump to content

Beginer with PHP


xuandac
 Share

Recommended Posts

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...