Log message #3941459

# At Username Text
# Oct 3rd 2016, 09:00 birdy247 My site was down yesterday
# Oct 3rd 2016, 09:00 birdy247 since they moved my server, so much stuff has stopped working
# Oct 3rd 2016, 08:59 birdy247 and they force me to change and they handled the migration
# Oct 3rd 2016, 08:59 birdy247 I am using a VPS
# Oct 3rd 2016, 08:58 birdy247 anyone ever used PlannetHippo web hosting
# Oct 3rd 2016, 08:57 birdy247 I value your opinions
# Oct 3rd 2016, 08:57 birdy247 Of course :slightly_smiling_face:
# Oct 3rd 2016, 08:54 Neon1024 If that matters
# Oct 3rd 2016, 08:54 Neon1024 I donâ??t use sprintf() personally
# Oct 3rd 2016, 08:54 Neon1024 Apart from the good point that unorthodox mentioned
# Oct 3rd 2016, 08:53 Neon1024 No idea
# Oct 3rd 2016, 08:53 birdy247 Neon1024 is there any advantage over the compared to sprintf
# Oct 3rd 2016, 08:53 Neon1024 Although youâ??ll probably want to pass the request to the table method
# Oct 3rd 2016, 08:53 Neon1024 I donâ??t think adding $this->Users->addLog() to your login() method is hard
# Oct 3rd 2016, 08:52 Neon1024 Iâ??m not going to write your code for you
# Oct 3rd 2016, 08:52 Neon1024 What? In IRC?
# Oct 3rd 2016, 08:52 freenode i am not sure what wrong i am doing here?
# Oct 3rd 2016, 08:51 ksandeep_ <Neon1024> can you please share the link where i can paste my code
# Oct 3rd 2016, 08:50 unorthodox :)
# Oct 3rd 2016, 08:49 Neon1024 unorthodox, Do you mean â??it $will throwâ? ? ;)
# Oct 3rd 2016, 08:49 Neon1024 But yeah, unorthodox is right
# Oct 3rd 2016, 08:49 Neon1024 and look in the â??Stingâ?? section under single and double quotes
# Oct 3rd 2016, 08:48 Neon1024 http://www.phptherightway.com/pages/The-Basics.html
# Oct 3rd 2016, 08:48 unorthodox Yeah but it will throw an undefined variable if not found though
# Oct 3rd 2016, 08:47 Neon1024 $and = â??This $will notâ??;
# Oct 3rd 2016, 08:47 Neon1024 $so = â??This $will workâ?;
# Oct 3rd 2016, 08:47 Neon1024 Any variable inside double quotes can be output
# Oct 3rd 2016, 08:47 Neon1024 The code you just wrote will work
# Oct 3rd 2016, 08:43 flangofas you probably need sprintf()
# Oct 3rd 2016, 08:42 birdy247 If it didnt, it should read, "hello, how are you today"
# Oct 3rd 2016, 08:42 birdy247 So if $aaron existed, $template would == "hello arron, how are you today"
# Oct 3rd 2016, 08:42 birdy247 $world = "aaron"
# Oct 3rd 2016, 08:41 birdy247 i.e. $template = "hello {$world}, how are you today"
# Oct 3rd 2016, 08:41 birdy247 Is there a simple way in PHP to insert a variable inside a string
# Oct 3rd 2016, 08:39 unorthodox Morning1271
# Oct 3rd 2016, 08:33 Neon1024 Morning247
# Oct 3rd 2016, 08:33 birdy247 Morning1024
# Oct 3rd 2016, 08:29 Neon1024 You should be able to achieve this, itâ??s not hard.
# Oct 3rd 2016, 08:29 Neon1024 Not sure what else to say without being mean
# Oct 3rd 2016, 08:27 ksandeep_ <Neon1024> Please provide more details. What i am doing is in login adding a function which insert log info (like email, IP, time etc)
# Oct 3rd 2016, 08:23 Neon1024 If it was me ksandeep_ Iâ??d just add a new method to the UsersTable class, and call that from my login method in UsersController::login