Raised This Month: $12 Target: $400
 3% 

SQL and Create KeyValue in databases.cfg


Post New Thread Reply   
 
Thread Tools Display Modes
Predailien12
Senior Member
Join Date: Feb 2010
Location: Your as* hol*
Old 08-22-2011 , 05:29   Re: SQL and Create KeyValue in databases.cfg
Reply With Quote #11

Quote:
Originally Posted by Peace-Maker View Post
Also the databases.cfg is parsed and cached on map start, so modifying it right prior connection won't find your newly added connection section.

You should consider writing a php script which serves the information needed and have your plugin just call the file from your webhost. Maybe add some licence keys and request limitations to stop spammers.
since i don't know the php script, I bought a book MySQL and PHP.
so I can study it. but how to call the file?
and how to get db handle if it's called by web?
Predailien12 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 08-22-2011 , 11:20   Re: SQL and Create KeyValue in databases.cfg
Reply With Quote #12

You send your own http request using the sockets extension and just parse the text result. You won't get a database handle. Only your php script needs to know the database information. Your plugin just reads what the script returns.
__________________
Peace-Maker is offline
Predailien12
Senior Member
Join Date: Feb 2010
Location: Your as* hol*
Old 08-22-2011 , 11:36   Re: SQL and Create KeyValue in databases.cfg
Reply With Quote #13

Quote:
Originally Posted by Peace-Maker View Post
You send your own http request using the sockets extension and just parse the text result. You won't get a database handle. Only your php script needs to know the database information. Your plugin just reads what the script returns.
oops.
sounds pretty hard work.
and does it make a lag??
Predailien12 is offline
DarkEnergy
SourceMod Donor
Join Date: Apr 2008
Location: Georgia Tech, MSECE
Old 08-24-2011 , 14:30   Re: SQL and Create KeyValue in databases.cfg
Reply With Quote #14

no it wont lag, its threaded
__________________
War3:Source Developer
"Your CPU is just a bunch of Muxes"
DarkEnergy is offline
Predailien12
Senior Member
Join Date: Feb 2010
Location: Your as* hol*
Old 08-25-2011 , 08:23   Re: SQL and Create KeyValue in databases.cfg
Reply With Quote #15

Quote:
Originally Posted by DarkEnergy View Post
no it wont lag, its threaded
Thank you a lot
Predailien12 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode