Hi All, How can i set the session time out in PHP if the user stays inactive for a certain time in a web page.Please help me to solve this.. Thanks

Member Avatar
Member Avatar
+0 forum 30

Could some 1 please tell how to do timestamps that not rely on users computer? time(); and UNIX_TIMESTAMP() seems to rely on users pc Thanks

Member Avatar
Member Avatar
+0 forum 19

Hi Expert, How can i remove the Time using Datetime Picker using vb 2005 that i can only save "MM/DD/YYYY" I tried editing the custom and format still the Time still getting pickup and save in my Database. Thanks guys.

Member Avatar
Member Avatar
+0 forum 2

I've found that there are times when I need to pull down a repository, but when working with other people, there's always that certain file that holds particular user-specific customizations. We need to pull it down the first time, but every time afterward, I'd prefer it not get updated - pushed or pulled. Is there a way to do this? EDIT: Maybe I should use a hook script to download the file once? Forgive my GIT noobishness.

Member Avatar
Member Avatar
+0 forum 2

good evening everyone... could anyone help me on this? With a "time value", eg. 08:00:00... i want to find the range that this value falls in using case statement... i am not good in using the time format... anyone can help? This is just an example: (the code is not working...is just an example) datime = Now().ToString("hh:mm:ss") Select Case datime Case "08:00:00" To "09:00:00" lblRange.Text = i.ToString() Case "09:00:01" To "09:14:59" lblRange.Text = (i - 0.25).ToString() Case "09:15:00" To "09:29:59" lblRange.Text = (i - 0.5).ToString() Anyone can help?

Member Avatar
Member Avatar
+0 forum 2

Hi everyone, can i check with you, if i want to compare time... how can i do that... i have the following code time_One = Now el_Time = time_One - time_Two Label1.Text = Now.ToShortTimeString If Label1.Text < "06:30:00 PM" Then Label1.Text = "-----" Else Label1.Text = el_Time.ToString End If I want to compare the current time with "06:30:00 PM"... so if the current time is smaller than "06:30:00 PM", i will do an action... how should i code? Please assist me! Thanks!

Member Avatar
Member Avatar
+0 forum 3

Hello! I would just like to ask, instead of a plain textbox what could be a more convenient way of inputting time to a form? Or add-ons?

Member Avatar
Member Avatar
-2 forum 6

Hi, I am trying to get the records out of a mysql database where the time is less than todays date and time - I have set the column as DateTime in mysql and it is stored as 2014-05-31 15:00:00 $TodayDate = date('Y-m-d H:i:s', time()+28800); $sttTodayDate=strtotime($TodayDate); // We Will prepare SQL Query $STM = $dbh->prepare('SELECT * FROM tbl WHERE kickoff< = :kickofftime ORDER BY kickoff Limit 1'); $STM->bindParam(':kickofftime', $sttTodayDate); // For Executing prepared statement we will use below function $STM->execute(); // Count no. of records $count = $STM->rowCount(); //just fetch. only gets one row. So no foreach loop needed :) …

Member Avatar
Member Avatar
+0 forum 5

I am trying to edit the following script to generate a unique time between 00:00:01 and 01:30:00 Using the following script. $start = new Datetime('00:00:01'); $end = new Datetime('01:30:00'); $randomTime = function (DateTime $start, DateTime $end, $resolution = 1) { if ($resolution instanceof DateInterval) { $interval = $resolution; $resolution = ($interval->m * 2.62974e6 + $interval->d) * 86400 + $interval->h * 60 + $interval->s; } $startValue = floor($start->getTimestamp() / $resolution); $endValue = ceil($end->getTimestamp() / $resolution); $random = mt_rand($startValue, $endValue) * $resolution; return new DateTime('@' . $random); }; echo $random = $randomTime($start, $end, 60); When I run the script I get the …

Member Avatar
Member Avatar
+0 forum 8

i have installed Ubuntu OS as "install inside windows".when i've been running Windows unfortunately i deleted the Ubuntu files.i couldn't recover them.now the problem is, the shortcut to choose Ubuntu OS at boot time can't be remove. plz tell me how to remove it.

Member Avatar
Member Avatar
+0 forum 2

Hello , I can't figure how to properly measure time execution when I have 2 loops and I want to measure the time for the innermost loop: for (int i = 1; i <= N; i++) { ..... clock_t begin = clock(); for (int j =1; j<= M; j++){ //want to measure time for this loop for each "i" ... } clock_t end = clock(); } Like this it only measures correct time for the first loop.

Member Avatar
Member Avatar
+0 forum 16

i wrote a program that have four classes .one of these classes is Date : class Date { public Date(int year,int month,int day) } in other classes there are some method that one of they're input is Date for example public void f(Account account ,Date date) i want to write the method in one of the classes that return the last time that one of the method with Date as input are called public Date g (){ //the code } what shoud the code be?

Member Avatar
Member Avatar
+0 forum 6

Hi, Entering website first time. Script says Admin then admin. Like so Admin Id: Admin Password: admin But get Error. Wrong Admin Login. Plus these errors top of page: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adven735/public_html/config.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adven735/public_html/config.php on line 4 Webhost help comment: If error message 'mysql_fetch_array(): supplied argument is not a valid MySQL result resource' or similar is displayed on your website, it means there are some issues with your MySQL query. Please kindly note this error is not related …

Member Avatar
Member Avatar
+0 forum 1

package JavaApplication42; import java.io.*; import java.io.IOException; import java.util.*; import java.io.BufferedReader; public class DPmodification { public static void main(String[] args) { BufferedReader br = null; int n, c, d,k, swap,i=0,j=0,no_of_selected_item=0; int numItems; int numTransactions; double minSup; String configFile = "F:\\New Folder\\configtrial.txt"; try{ FileInputStream file_in = new FileInputStream(configFile); BufferedReader data_in = new BufferedReader(new InputStreamReader(file_in)); //number of items numItems = Integer.valueOf(data_in.readLine()).intValue(); boolean[] skiplist=new boolean[numItems]; //number of transactions numTransactions = Integer.valueOf(data_in.readLine()).intValue(); //minsup minSup = (Double.valueOf(data_in.readLine()).doubleValue()); int[] length=new int[numTransactions]; int[] sum=new int[numItems]; int[][] m=new int[numTransactions][numItems]; String[] line=new String[numTransactions]; //output config info to the user System.out.print("\nInput configuration: " + numItems + " items, " + numTransactions …

Member Avatar
Member Avatar
+0 forum 1

Oldest question in the book. Google says: SELECT NOW()+ 0; And a bunch of other things like UNIX_TIMESTAMP() but doing a select on these, it only returns the seconds, not including the miliseconds. Basically, I need, from MySQL's side the milliseconds. How can I do this?

Member Avatar
Member Avatar
+0 forum 3

hi all, i want to create a program that transmit voice something like skype but i have a problem , there some basics like how to get the voice and how to send it i found source code but i did not understand it. thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

When interface guru Jakob Nieslen reported on the [URL="http://www.useit.com/alertbox/kindle-usability-review.html"]Kindle 2 [/URL]usability last March, he pointed out it was great for books, but not much other content. Why is this significant? Two recent reports suggest that the eBook Reader could move beyond a simple device for reading books, and could become so much more. In one instance, Apple has released a multimedia "eBook" into the iTunes store. In the other, news reports on Friday suggested that Time, Inc could be working a new Reader for the purpose of distributing their magazines. Suddenly, this market is looking even more interesting. [B]Time Keeps …

Member Avatar
Member Avatar
+0 forum 4

The End.