Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. not close sqlitedb in php is ok?

not close sqlitedb in php is ok?

Scheduled Pinned Locked Moved Web Development
sqlitephpdatabasehelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_14490964
    wrote on last edited by
    #1

    I am making php page. In my php page, exit() function calls in serveral places and i declared sqlite3::open() function in first line of php. Closing db before each exit function makes code complex. So i don't close sqlite db at the end is ok? Please help me :-\

    L M 2 Replies Last reply
    0
    • M Member_14490964

      I am making php page. In my php page, exit() function calls in serveral places and i declared sqlite3::open() function in first line of php. Closing db before each exit function makes code complex. So i don't close sqlite db at the end is ok? Please help me :-\

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Member 14490964 wrote:

      In my php page, exit() function calls in serveral places

      You need to redesign your page.

      M 1 Reply Last reply
      0
      • L Lost User

        Member 14490964 wrote:

        In my php page, exit() function calls in serveral places

        You need to redesign your page.

        M Offline
        M Offline
        Member_14490964
        wrote on last edited by
        #3

        how? please in detail

        L 1 Reply Last reply
        0
        • M Member_14490964

          how? please in detail

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Detail of what? We have no idea what your code does or why. It is up tp you to review it and figure out why you have all these exit calls, and why you are leaving open databases if the code terminates.

          1 Reply Last reply
          0
          • M Member_14490964

            I am making php page. In my php page, exit() function calls in serveral places and i declared sqlite3::open() function in first line of php. Closing db before each exit function makes code complex. So i don't close sqlite db at the end is ok? Please help me :-\

            M Offline
            M Offline
            Member_14884962
            wrote on last edited by
            #5

            You can turn to http://module-presta.com/ to solve this problem

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups