phpQuestioner Posted February 25, 2007 Share Posted February 25, 2007 All of a sudden today; my web host's server started acting strange. I have a time in one of my pages, like this: $rightnow = date("g:i a"); echo $_GET['rightnow'] This will not even display this time. So I just tried this: $rightnow = date("g:i a"); echo "$rightnow"; It displayed the time like this; but it was way off and every time I reload the page; the minutes would either go way up or way down. So I just tried to define a basic variable and use $_GET to display in page; like this: $welcome = "Hello"; echo $_GET['welcome'] It would not display anything. Does any one know why this might be happening? Has my server been hacked or just my filemanger? Link to comment https://forums.phpfreaks.com/topic/40009-server-not-acting-right/ Share on other sites More sharing options...
magic2goodil Posted February 25, 2007 Share Posted February 25, 2007 $_GET variables are variables listed in the address bar. When you call the $_GET['welcome'] it is looking in the address bar. leave your code how it is for a second and type this at the end of your address bar: ?welcome=Testing see what that did? Link to comment https://forums.phpfreaks.com/topic/40009-server-not-acting-right/#findComment-193497 Share on other sites More sharing options...
phpQuestioner Posted February 25, 2007 Author Share Posted February 25, 2007 That displays accurately; but why is my server time bouncing around when I use the code below? $rightnow = date("g:i a"); echo "$rightnow"; It was not doing this a couple of days ago. Link to comment https://forums.phpfreaks.com/topic/40009-server-not-acting-right/#findComment-193504 Share on other sites More sharing options...
phpQuestioner Posted February 25, 2007 Author Share Posted February 25, 2007 I do not understand why it would all of a sudden start doing this. Any idea why - was it hacked into, maybe....? Link to comment https://forums.phpfreaks.com/topic/40009-server-not-acting-right/#findComment-193505 Share on other sites More sharing options...
magic2goodil Posted February 25, 2007 Share Posted February 25, 2007 I'm not sure on that to be honest. Link to comment https://forums.phpfreaks.com/topic/40009-server-not-acting-right/#findComment-193507 Share on other sites More sharing options...
phpQuestioner Posted February 25, 2007 Author Share Posted February 25, 2007 Has anyone ever had this to happen on their server before; if so, how was it resolved? I emailed my web host; but unfortunately probably will not get a response until Monday or Tuesday. Link to comment https://forums.phpfreaks.com/topic/40009-server-not-acting-right/#findComment-193526 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.