shane18 Posted September 22, 2009 Share Posted September 22, 2009 Can you do: if(time()+1800 > $last_login_timestamp){ without getting a error? Quote Link to comment https://forums.phpfreaks.com/topic/175110-solved-quick-function-if-question/ Share on other sites More sharing options...
Maq Posted September 22, 2009 Share Posted September 22, 2009 Why don't you try it instead of asking. Quote Link to comment https://forums.phpfreaks.com/topic/175110-solved-quick-function-if-question/#findComment-922915 Share on other sites More sharing options...
shane18 Posted September 22, 2009 Author Share Posted September 22, 2009 because im at school writting it in my free time, so I'm not able to test it. I only ask these type of questions maybe once a week. so can you please test it for me sir. Quote Link to comment https://forums.phpfreaks.com/topic/175110-solved-quick-function-if-question/#findComment-922956 Share on other sites More sharing options...
Maq Posted September 22, 2009 Share Posted September 22, 2009 because im at school writting it in my free time, so I'm not able to test it. Since you have access to the net then maybe you could have researched in the manual as to what time() returns and figured out that it won't throw an error. Do you have reason to believe otherwise? I only ask these type of questions maybe once a week. Irrelevant. Quote Link to comment https://forums.phpfreaks.com/topic/175110-solved-quick-function-if-question/#findComment-922961 Share on other sites More sharing options...
shane18 Posted September 22, 2009 Author Share Posted September 22, 2009 so.... you can add two int's in a function like if($blah + 35353 > $test){ and it will work? Quote Link to comment https://forums.phpfreaks.com/topic/175110-solved-quick-function-if-question/#findComment-922966 Share on other sites More sharing options...
Maq Posted September 22, 2009 Share Posted September 22, 2009 Yes you can. Is it really that big of a deal anyway to do the computation prior to the IF statement? Quote Link to comment https://forums.phpfreaks.com/topic/175110-solved-quick-function-if-question/#findComment-922974 Share on other sites More sharing options...
broseph Posted September 22, 2009 Share Posted September 22, 2009 If you need a testing enviroment, and are away from your main computer, consider installing ssh or cygwin on your PC. This would allow you to do this testing by logging in remotely (assuming your school gives you access to a *nix shell of some sort, if its a highschool with all Win boxes youre probably out of luck, unless you can run putty or something similar). if you have trouble: windows: http://lifehacker.com/205090/geek-to-live--set-up-a-personal-home-ssh-server linux: http://www.jonathanmoeller.com/screed/?p=1072 Quote Link to comment https://forums.phpfreaks.com/topic/175110-solved-quick-function-if-question/#findComment-922978 Share on other sites More sharing options...
shane18 Posted September 22, 2009 Author Share Posted September 22, 2009 thanks for the tips Quote Link to comment https://forums.phpfreaks.com/topic/175110-solved-quick-function-if-question/#findComment-923036 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.