Jump to content

Transition of resources(database connection) across pages


Recommended Posts

Hi Friends,

 

I am developing a web app in PHP/Apache/Win. My prob is, after the database(oracle) transaction is complete, there is either a COMMIT or ROLLBACK as the script ends, depending upon the MODE. Now I don't want this. I am using a persistent connection and I want to prevent this behaviour at the script terminnation.

 

Looking fwd for help.

hello, I don't quite understand what you mean..

 

but, as you may know

 

as php exits, it destroys any resources and variables that has been created

 

so once php exits, you can't share the previous resource with another page.. you just need to re-connect to the database on the next page..

 

unless you mean share the resource with other pages rthat you are including..

 

which you shouldn't have a problem with..

Hi Russel,

Thanks a lot for the response.

 

I just need to pass the resource variable to the next page. I tried using sessions etc..but no luck.

Is there any method, so that I can store it for future use. Or Is there any option by which I can

prevent PHP by destroying that resource.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.