Re: [PHP] Hmmm
Jason Bennett wrote: I just installed a new MYSQL version 4.1 (from 4.0) and now none of my PHP scripts work anymore. They are all complaining about attempting to login as root. snip I'm going to guess that you didn't setup MySQL 4.1 to accept 'old-style' passwords. -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Hmmm
Oooo.. good one. I used the RPM install for MySQL.. can you point me in the right direction for doing this? Thanks!! J. -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Sunday, February 27, 2005 9:40 PM To: php-general@lists.php.net Subject: Re: [PHP] Hmmm Jason Bennett wrote: I just installed a new MYSQL version 4.1 (from 4.0) and now none of my PHP scripts work anymore. They are all complaining about attempting to login as root. snip I'm going to guess that you didn't setup MySQL 4.1 to accept 'old-style' passwords. -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hmmm
Jason Bennett wrote: Oooo.. good one. I used the RPM install for MySQL.. can you point me in the right direction for doing this? Thanks!! J. Google is your friend... http://www.google.com/search?q=mysql+4.1+accept+old+password -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hmmm, and how to do THAT ? ;)
Nono, I'm saying that you can never be 100% sure where someone came from, since they are responsible for storing that data, and they can modify before sending it back to you. If you really want to make sure someone came from another page before the current page, create a uniq ID and md5 it or something, store it in the database and then when someone comes to that page check the cookie value against what you stored in the database.. that's the only way to really enforce that someone came from a previous page of yours. The http_referrer stuff is really built in just for statistics not security. Josh. On March 19, 2003 05:28 pm, Philarmon wrote: Ok, thanks for the info, Josh ! All security measures needs to happen on the server, not from what the users web browser gives you. And how to do something like that on the server ? Is there a tutorial somewhere about this or something ? A few words about that would be great ! :) Philarmon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hmmm, and how to do THAT ? ;)
Hi, On Wed, 2003-03-19 at 22:28, Philarmon wrote: All security measures needs to happen on the server, not from what the users web browser gives you. And how to do something like that on the server ? Is there a tutorial somewhere about this or something ? A few words about that would be great ! :) Perhaps you could generate a cookie when they fist enter your site and then check that that cookie is valid when retrieving the content. If then they don't have the cookie set you would know that they have linked to the page directly rather than from following a link on your site. The cookie would have to be some sort of random identifier that you also stored on the web server somewhere so that you could validate the cookie was authentic. Regards, AW -- Abdul-Wahid Paterson Lintrix Networking Communications ltd. Web: http://www.lintrix.net/ Tel: +44 7801 070621 Email/Jabber: [EMAIL PROTECTED] Web-Hosting | Development | Security | Consultancy | Domains signature.asc Description: This is a digitally signed message part
Re: [PHP] Hmmm, and how to do THAT ? ;)
Hmmm, the PHP script is not a webpage but just a script which is called from a flash movie, so i guess i cant check cookies with that :( But thanks anyway ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Hmmm?
I presume you mean code layout Its there to make code easier to read. eg some silly code for ($x=1;$x100;$x++) { while ($i50) { print $i; } } This is more legible than for ($x=1;$x100;$x++) { while ($i50) { print $i; } } Indentation makes it easier to spot where your code constructs - if ,switch, while etc start and end. Hope that explains it a little. Do a search for code layout in google, and read up on it, and check out a few examples. There are a number of coding styles, find one that you like, and be consistent. Remember to also comment your code, as well as making it presentable. If you look back at old code in a few years time you'll be grateful you did. Cheers, Lawrence. -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: August 1, 2001 11:42 PM To: [EMAIL PROTECTED] Subject: [PHP] Hmmm? Whenever i get a php script off a website why is it that most of the main parts in the script have a space from the left border. eg ?php echospazzz; ? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]