Why is the login failing? They should be refused entry...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

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...

Post 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.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Why is the login failing? They should be refused entry...

Post 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! :D
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

Post 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!
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply