www.webdeveloper.com
Results 1 to 9 of 9

Thread: Config file to website

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Location
    Denmark
    Posts
    81

    Config file to website

    I need small help for whot is best way to config file in website.

    i hav right now a config.php file when i crate variables and array in this file bot i hav read small about parse_ini_file() for ini file to config items soe now i ask my self about whot is fastest way and best perfomest for the webserver.

    i hob i can be helpt here.

  2. #2
    Join Date
    Jan 2005
    Location
    Alicante (Spain)
    Posts
    7,742
    Unless your webserver is serving 50 pages a second you don't need to worry about performance.

  3. #3
    Join Date
    Mar 2006
    Location
    Denmark
    Posts
    81
    Okay... bot i think whot method ist fastest?

  4. #4
    Join Date
    Jan 2005
    Location
    Alicante (Spain)
    Posts
    7,742
    Why don't you run a test to find out? It is unlikely though that there is even a 1 millisecond advantage with either method.

  5. #5
    Join Date
    Mar 2006
    Location
    Denmark
    Posts
    81
    hmmm year ist right... bot how can i doe it? are the one function to tjeck load time?

  6. #6
    Join Date
    Jan 2005
    Location
    Alicante (Spain)
    Posts
    7,742
    You would need to write one and to be accurate it would need to test both compile time and run time.

  7. #7
    Join Date
    Mar 2006
    Location
    Denmark
    Posts
    81
    oaky. bot how?

  8. #8
    Join Date
    Jan 2005
    Location
    Alicante (Spain)
    Posts
    7,742
    Why would you waste your time (maybe several hours) writing a script to find if one method is quicker than the other, and if so by how many nanoseconds.

  9. #9
    Join Date
    Mar 2006
    Location
    Denmark
    Posts
    81
    okay tanks for help there....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles