Jump to content

underthefake

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by underthefake

  1. I have a button that uses $_POST to send information to another page. The data is in a hidden input so it's not possible for users to change information. I have nothing to check if the data is correct on the other page. Is it still possible for people to change the $_POST data though? Or somehow send false $_POST data to the other page?
  2. I don't understand why I have to write $this-> every time to refer to a variable or function in an object in PHP. I know in Java I don't need to always write this.variable, I can just refer to the variable directly. Is there a way to refer to a variable belonging to the object without using $this-> all the time? It is very annoying...
  3. I have read online that large objects in the session will impact performance greatly. My objects will be quite large so I don't think using sessions will be the best.
  4. I want to include a variable (for example an object $user) in each PHP page. Previously I declared $var in an include file then included that file in every page, however it generates an error in Zend Studio and it's also not very good programming style. I want to know how I can do it any other way. I was thinking of using constants but I don't know if constants should be used for this purpose and also I do not think constants can be defined as objects. Thank you very much for your help.
×
×
  • 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.