NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page [WTH]MySQL to PHP

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 06-05-2007, 08:00 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
Jerlene's Avatar
Join Date: Mar 2006
Location: LifesCircle.info
Posts: 954
Jerlene is a glorious beacon of lightJerlene is a glorious beacon of lightJerlene is a glorious beacon of lightJerlene is a glorious beacon of lightJerlene is a glorious beacon of light
 




[WTH]MySQL to PHP


My PHP sessions are stored in a MySQL database table, and not in files. The database is executing too many queries and this overloads my shared server.

My host strongly suggests I have my PHP sessions stored in files and not in MySQL database table. I don't know how to change that setting so I'm looking to hire someone that can do this for me.

Reply in this thread if you know how to do this and let me know the price you'll do it for. Make me an offer, I will not set a price. Thanks.
__________________
Buy Backlinks
Jerlene is offline  
Old 06-05-2007, 11:36 PM   #2 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,074
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
this should be very simple and SHOULD only require a line change in the php script.

In your script look for a line that looks like:-

session_set_save_handler("open", "close", "read", "write", "destroy", "gc");

this is where it is set.
Peter is offline  
Old 06-06-2007, 12:35 AM THREAD STARTER               #3 (permalink)
NamePros Regular
 
Jerlene's Avatar
Join Date: Mar 2006
Location: LifesCircle.info
Posts: 954
Jerlene is a glorious beacon of lightJerlene is a glorious beacon of lightJerlene is a glorious beacon of lightJerlene is a glorious beacon of lightJerlene is a glorious beacon of light
 




Sorry. I have no clue what that's all about. What exactly do I have to do?

Oh and what script will this be in? I have a lot of files on my server.
__________________
Buy Backlinks
Jerlene is offline  
Old 06-06-2007, 02:03 AM   #4 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,074
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
without seeing the files it is impossible to say. An application can be made up of literally hundreds of files and the names and what is contained in them is pretty much up to the person who wrote it.

Regarding the line I posted. The line is an example piece of code that sets routines for php to know how to handle the sessions, by default php users files as your host is advising but this behaviour can be over written. It is possible they do not use php session handling at all but that is less likely.
Peter is offline  
Old 06-06-2007, 09:44 AM   #5 (permalink)
New Member
Join Date: Mar 2007
Posts: 16
samuofm is an unknown quantity at this point
 



Originally Posted by peter@flexiwebhost

Regarding the line I posted. The line is an example piece of code that sets routines for php to know how to handle the sessions, by default php users files as your host is advising but this behaviour can be over written. It is possible they do not use php session handling at all but that is less likely.

This is true, I've actually never thought about storing the sessions in a database, always used files by default. Since its a shared host he probably can't edit the php.ini file so he'll have to go with a solution like you suggested, setting the session mode in the actual request calls.
samuofm is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:21 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger