Jump to content

Flame_N

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Everything posted by Flame_N

  1. Hi to all again, It's pretty simple. I have a database table that rarely changes it's values. Would it be faster to insert the variables from that table into a file (and include that file into the PHP file that needs the value) or just query the database when needed? I can run a script once I need to change the values and the script can write them to the file that is included in the PHP file that needs them. If you don't know the answer can you tell me how I can test how much time a PHP script needs to run... can I find what time it is in a desired moment in the script in milliseconds or something? Thank you all in advance
  2. Thanks for answering so fast guys. I understood your answers completely.
  3. Hello to everyone, I am new to this forum and I hope you guess can answer one or two questions... First I wanted to ask whether the size of the PHP code reflects on the time it takes to load a page? I suppose the only thing that matters is how fast the server will handle your request? I know PHP only returns html code to the client but, if the PHP file is (for an instance) 500KB it doesn't mean that it will load slow? The client only waits for the server to return html right? So... the time it takes to load a page is the time the server needs to handle your request and the time you download the hmtl from it? I wanted to know this so that I could know whether it matters to make big scripts or try to optimize them. Second question. It may sound dumb but, I wanted to hear this from professionals. Can someone see the content of you php file? (I'm pretty sure they don't buy I want to hear people say it ). However if there is such a way, what should I do for protection against this.
×
×
  • 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.