Jump to content

Transition of resources(database connection) across pages


dvd420

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.

Archived

This topic is now archived and is closed to further replies.

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