…; [5]=> string(5) "24.00" } ["ProductCount"… Discussion Thread by davidjennings in Web Development
1 Month Ago
… they need maintenance which lasts 24 hours 7. Due to some… Discussion Thread by Valentine_1 in Software Development
c#
4 Weeks Ago
… they need maintenance which lasts 24 hours 7. Due to some… Discussion Thread by Valentine_1 in Software Development
c#
Hi Valentine, welcome at DaniWeb. Did you read the rules before posting? You must first show us what you already got, then we will help. We don't do your homework. Reply by ddanbe
4 Weeks Ago
… they need maintenance which lasts 24 hours 7. Due to some… Discussion Thread by Valentine_1 in Software Development
c#
@V, here's that and a longer read before you post. https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question Reply by rproffitt
4 Weeks Ago
… they need maintenance which lasts 24 hours 7. Due to some… Discussion Thread by Valentine_1 in Software Development
c#
Please consider that when you just post a homework assignment verbatim you are possibly in violation of some sort of copyright. Also please note that nowhere in your post is there any question actually coming from you. To us it looks like: >Here's my… Reply by Reverend Jim
4 Weeks Ago
Good afternoon everyone, I'm currently working towards to provide the following output for my code: What number shall i start with? 7 The hailstone sequence starting at 7 is: 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1 The length of the … Discussion Thread by Sherwin_4 in Programming
c++
… change, so look at line 24. Does it ever execute? If… Reply by AssertNull
3 Weeks Ago
Good morning everyone, The library will be home, 0800 till 2100. I've been working on trying my loops in my hailstone sequence into recursions. It seem recursion can easrier to do, instead of creating loops. I say seem, because now I have come to halt … Discussion Thread by Sherwin_4 in Software Development
… means that lines 21 to 24 do nothing. Line 23 assigns… Reply by AssertNull
2 Weeks Ago
…:s'); //2017-02-09 16:24:22.000 $duration=$start-$starttime… Discussion Thread by phphp in Web Development
php
2 Weeks Ago
…:s'); //2017-02-09 16:24:22.000 $duration=$start-$starttime… Discussion Thread by phphp in Web Development
php
Line 4 looks incorrect. Read http://php.net/manual/en/datetime.diff.php which has some examples for you. Reply by rproffitt
2 Weeks Ago
…:s'); //2017-02-09 16:24:22.000 $duration=$start-$starttime… Discussion Thread by phphp in Web Development
php
You can not subtract two strings representing dates on line 4 and expect to get a difference. Besides the variables on line 4 have not been declared anywhere (but I guess you just misstyped them). The best thing to do is to use the [DateTime](http://php… Reply by broj1
2 Weeks Ago
…:s'); //2017-02-09 16:24:22.000 $duration=$start-$starttime… Discussion Thread by phphp in Web Development
php
…;diff($dend)->format('%a') * 24; $hours = $dstart->diff($dend… Reply by diafol
2 Weeks Ago
Hi. I have a secure web page and users to access it must register. After registration and login page when they access. I would like to make a module to redirect users after logging on page after gaining access a link. Function can be used: Header … Discussion Thread by Minune in Web Development
php
…('username', $_POST['username'], time() + 3600*24*30); setcookie('password', $_POST['password…'], time() + 3600*24*30); } header('Location: '.$success_page); exit… Reply by Minune
1 Week Ago
…current_time - $oldtime >= 86400){ // 24 hours or more so we… } else { // less than 24 hours so don't query…file echo 'less than 24 hours has passed'; //… Discussion Thread by genieuk in Web Development
1 Week Ago
…current_time - $oldtime >= 86400){ // 24 hours or more so we… } else { // less than 24 hours so don't query…file echo 'less than 24 hours has passed'; //… Discussion Thread by genieuk in Web Development
Just to check, you're only getting this output: >file empty so gonna write data to file. Do a echo "The file size is actually ".filesize($filename)." bytes.\n"; before line 12 Reply by diafol
1 Week Ago
…current_time - $oldtime >= 86400){ // 24 hours or more so we… } else { // less than 24 hours so don't query…file echo 'less than 24 hours has passed'; //… Discussion Thread by genieuk in Web Development
Hi diafol, Yes that's correct i only ever get > file empty so gonna write data to file. i added the code you gave before line 12 and it outputs > The file size is actually 0 bytes. yet in the file i have > 1487071245 ; 582 … Reply by genieuk
1 Week Ago
…current_time - $oldtime >= 86400){ // 24 hours or more so we… } else { // less than 24 hours so don't query…file echo 'less than 24 hours has passed'; //… Discussion Thread by genieuk in Web Development
Hi, use `r+` to read and write from the top or `a+` in case you want to append data: $fopen = fopen($filename, 'r+'); With the `w+` flag the file is cleared: > Open for reading and writing; place the file pointer at the beginning of the… Reply by cereal
1 Week Ago
…current_time - $oldtime >= 86400){ // 24 hours or more so we… } else { // less than 24 hours so don't query…file echo 'less than 24 hours has passed'; //… Discussion Thread by genieuk in Web Development
Many thanks @cereal problem solved. Cheers. Reply by genieuk
1 Week Ago
…(date_getFullTimeDifference('2016-02-09 15:24:11.000','2017-02-07… Discussion Thread by phphp in Web Development
php
1 Week Ago
…(date_getFullTimeDifference('2016-02-09 15:24:11.000','2017-02-07… Discussion Thread by phphp in Web Development
php
[Here you go](http://php.net/manual/en/class.dateinterval.php) Reply by pty
1 Week Ago
…(date_getFullTimeDifference('2016-02-09 15:24:11.000','2017-02-07… Discussion Thread by phphp in Web Development
php
I would suggest you to make use of `strtotime()` for both dates and then substract the start timestamp from the end timestamp. Reply by Xavier_5
1 Week Ago
…(date_getFullTimeDifference('2016-02-09 15:24:11.000','2017-02-07… Discussion Thread by phphp in Web Development
php
You have been shown how to get this (or something close to this) done here: https://www.daniweb.com/programming/web-development/threads/507492/php-datetime-calculation You did not respond to that and now you post a new thread with a slightly … Reply by diafol
1 Week Ago
I have a form that creats a json array from user input data. Array ( [full_name] => First Name + Last Name [company_name] => Company Name [email] => Email [free_trial] => trial (Yes/No)… Discussion Thread by double_cola in Web Development
… = $form.find( '[data-itemid="24"]' ), $per_month = $form.find( '[data… Reply by double_cola
5 Days Ago
…="background-color: rgba(19,24,32,0.8);">… Discussion Thread by Furkan_2 in Web Development
php
4 Days Ago
…="background-color: rgba(19,24,32,0.8);">… Discussion Thread by Furkan_2 in Web Development
php
Hi, the regular expression used to validate first and last name can fail if there are special characters or a dot, like in `Bj√∂rk` or `Aldous L. Huxley`, see: * https://www.w3.org/International/questions/qa-personal-names So here you may want to … Reply by cereal
4 Days Ago
…="background-color: rgba(19,24,32,0.8);">… Discussion Thread by Furkan_2 in Web Development
php
…="background-color: rgba(19,24,32,0.8);">… Reply by Furkan_2
4 Days Ago
… - etho1 - 192.168.1.0/24 connect to LAN , DHCP Server… Discussion Thread by Malaka_1 in Linux and Unix
3 Days Ago
SO Basically i have this problem with this test build of a little project im rewriting and so far its not looking to good I have multiple tables that are all the same, they have been set up this way for simplicity as far as i can tell. Tables… Discussion Thread by berserk in Programming
…;< 5 + (server_startup_time_in_seconds << 24) + incremented_variable++; I'm not a… Reply by Traevel
3 Days Ago
…="background-color: rgba(19,24,32,0.8);">… Discussion Thread by Furkan_2 in Web Development
php
Hi, > so the validation code is not working properly. can you give details about what does not work properly? Reply by cereal
3 Days Ago
Hello am very new to selling online. I come up with an idea to sell something online like t-shirt or socks :P or whatever. I googled "how to sell online" and company called shopify popped, i reviewed it and i think its pretty cool tool for e-… Discussion Thread by Stefan_1 in Digital Marketing
… they want to charge me $24.99 per t-shirt so… Reply by Stefan_1
2 Days Ago
I am new to the forums and I am creating a Area Calculator for extra credit for a class I am in, but I am running into some problems. I have the program coded out the way it needs to operate I just can't seem to get it to loop after I have processed one … Discussion Thread by zac202020 in Software Development
![2017-02-24--1487972728_872x593_scrot.png](/attachments/large/2/36b54838cc12fdc3f50697ef21b4a246.png "align-center") Reply by Traevel
1 Day Ago