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.
Why is the login failing? They should be refused entry...
Moderator: General Moderators
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
[RESOLVED] Re: Why is the login failing? They should be r...
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
Re: Why is the login failing? They should be refused entry...
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

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
And yeah, hi 5 Eric!@jackpf .. looks like we posted at the same time and saw the same thing....
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
[RESOLVED] Re: Why is the login failing? They should be
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!
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!
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.