Jump to content

jimmo

New Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

jimmo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have received several spam messages over the last several weeks sent to the address I use for PHPFreaks. I run my own web server, so I create individual email address for each of the sites I visit, so I can keep track of where the spmamer go tmy address. It is unlikely that the server was hacked or my local email client was hacked, as I get spam only to the PHPFreaks address and a few others that I know to be untrustworthy. (for example, my Amazon, Microsoft and Google address have not received the spam). I also have not recieved the same spam to the untrustowrthy addresses, although in other cases, I get several spam messages at once addessed to those untrustworthy addresses. Since this particular spam was only sent to the PHPFreaks address, it seems most likely that this is where they got that address. So, does anyone know if PHPFreaks was hacked or in some other way had user email addresses get compromised?
  2. It definitely makes sense to use constants for the directories. I was unaware of the problem with serialization of the $_SESSON super global. Thanks for the tip. At this point, I am not sure if static variable make sense in my application as I cannot think of any cases where a give function is called more than once per page, or if it is, whether there are variable I need to keep between calls. However, it is definitely something to think about. However, I still don't have a definitive answer about when to use each and when.
  3. Wouldn't that simply be calling the rose by a different name? Naturally the SESSION global is only valid for the session, but there is still the problem of having "everything" in that array. So the problem exists, but with a different name. What do you mean by "limit your session definitions, i would suggest using bitwise operators"? I certainly know what bitwise operators are, but I am lost as to what bitwise operators have to do with global variables in this context.
  4. Hi All! I have a number of variables that I need to drag around my application and I am trying to decided what is the "best" way. For the most part these are configuration variables, defining things like directories, default values when not otherwise defined and so forth. The application is object based and I have a base class where I could store values I need. Not every variable is needed in every class or in every function. I have also thinking about using the $GLOBAL array, as well simply defining the variables then accessing then as "global $var" when I need to. There are a number of places where I can simply pass the given value to a function. I have been googling for the past couple of days looking for a discussion/comparison of the various methods, but I found nothing really definitive that discusses the pros and cons of the various. So, the basic question is when to use each method and when not to. I am grateful for any input (including simply kicking my backside and telling me where it has already been discussed). Regards, jimmo
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.