Page 2 of 2
[RESOLVED] Re: Why is the login failing? They should be r...
Posted: Fri Jul 24, 2009 2:17 pm
by simonmlewis
Well it's a good thing to learn - that the today () script runs from the server it sits on. But I guess, running it locally would do that, but run it on a web server, and it'll be getting THAT date.
Cheers.
Re: Why is the login failing? They should be refused entry...
Posted: Fri Jul 24, 2009 3:18 pm
by jackpf
It never ceases to amaze me how people think PHP runs... No offense, I know you're only a beginner
But in some other thread, some guy was asking why Firefox asked him to remember his mysql password from a php script....oh jesus. That made me laugh.
But yeah, PHP runs on the server. If you look at the HTML source in your browser, you won't see any PHP code, only whatever you've echoed, or not contained in php tags.
Code that is executed client side is javascript...and you can also have java applets as well, which are run through the java platform...but yeah. PHP is entirely server side
@jackpf .. looks like we posted at the same time and saw the same thing....
And yeah, hi 5 Eric!

[RESOLVED] Re: Why is the login failing? They should be
Posted: Fri Jul 24, 2009 3:28 pm
by simonmlewis
Hi.
Well I'm a beginner on this forum, not in PHP per se.
I just got confused as I have done so much in localhost, with the today() script taking today's date I just forgot I was also testing on a web server where it takes the server's date.
None taken!