Re: [PHP] use JSON storage on RAMdisk instead of SQL? (for fast moving sites)
On Thu, Sep 6, 2012 at 2:28 PM, Matijn Woudt wrote: > Op 6 sep. 2012 12:48 schreef "rene7705" het volgende: >> >> Hi Folks.. > >> >> I seem to have figured most of this out, but before I embark on weeks >> of coding, I'd like to give the SQL experts here a chance to convince >> me to stick to MySQL for my data storage and distribution needs. I'd >> love to hear of a simple way to efficiently store and operate a forum >> with tree-structures for both subforums and threads->messages using >> MySQL, as my live hoster does not support RAMdisks, not without >> charging me about 70 euro per month instead of the $7 I pay now ;) >> >> Ok, thanks for reading and possibly considering all this, >> Rene >> > > Hi Rene, > > I don't call myself an sql expert, but well.. sql is great, but not the > most efficient. There are more people like you that thought about storing > data in json. This has proven to be faster in most situations, that's why > popular platforms like facebook and Twitter don't use sql anymore. Have a > look at MongoDB for example, it uses bson,binary json. That seems to do > exactly what you want and you don't have to reinvent the wheel. You can > choose to store it's data files on ramdisk to make it even faster, but > mongodb has a pretty good cache. > > - Matijn +1 for mongo... If you want to go crazy I would suggest looking at http://meteor.com or derbyjs.com to build the app. They run on node and manage the real time changes to the dom content between systems -- Bastien Cat, the other other white meat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] use JSON storage on RAMdisk instead of SQL? (for fast moving sites)
Op 6 sep. 2012 12:48 schreef "rene7705" het volgende: > > Hi Folks.. > > I seem to have figured most of this out, but before I embark on weeks > of coding, I'd like to give the SQL experts here a chance to convince > me to stick to MySQL for my data storage and distribution needs. I'd > love to hear of a simple way to efficiently store and operate a forum > with tree-structures for both subforums and threads->messages using > MySQL, as my live hoster does not support RAMdisks, not without > charging me about 70 euro per month instead of the $7 I pay now ;) > > Ok, thanks for reading and possibly considering all this, > Rene > Hi Rene, I don't call myself an sql expert, but well.. sql is great, but not the most efficient. There are more people like you that thought about storing data in json. This has proven to be faster in most situations, that's why popular platforms like facebook and Twitter don't use sql anymore. Have a look at MongoDB for example, it uses bson,binary json. That seems to do exactly what you want and you don't have to reinvent the wheel. You can choose to store it's data files on ramdisk to make it even faster, but mongodb has a pretty good cache. - Matijn
RE: [PHP] xmlrpc encoding problem
> *$server = xmlrpc_server_create();* > *xmlrpc_server_register_method($server, "showLog", "showLog_func");* > *xmlrpc_server_register_method($server, "showMaxLogId", > "showMaxLogId_func");* > *$request_xml = file_get_contents("php://input");* > *$response = xmlrpc_server_call_method($server, $request_xml, null);* > *print $response;* > *xmlrpc_server_destroy($server);* > ?> > > All the response given from the server has the header encoding="iso-8859-1"?> > > Is there anyway to change the encoding to utf-8? > > Thanks [>] Have you tried $xmlrpc_defencoding = "UTF8"; ? Marc Hall HallMarc Websites -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pre-populating of a form with known info from database
Girish Talluru wrote: >Hi All, > >I have a form using aspx whenever user access the page based on the >pre-known information of the user i need to prefill certain fields from >the >batabase but the challenge is i can't use the asp or touch any existing >code. > >Any suggestions. > >Thanks, > >Girish Talluru Firstly, what does this have to do with PHP? To do this at all you will need some element of code on the server to retrieve the right information and output it in some way. If you can't edit existing code, you will have to do some sort of ajax request to get this info. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] xmlrpc encoding problem
Hi, here's my code All the response given from the server has the header Is there anyway to change the encoding to utf-8? Thanks
[PHP] Pre-populating of a form with known info from database
Hi All, I have a form using aspx whenever user access the page based on the pre-known information of the user i need to prefill certain fields from the batabase but the challenge is i can't use the asp or touch any existing code. Any suggestions. Thanks, Girish Talluru
[PHP] Re: use JSON storage on RAMdisk instead of SQL? (for fast moving sites)
On Thu, Sep 6, 2012 at 12:47 PM, rene7705 wrote: > create RAMdisks for free of up to 500gb, and, more important, can on a sorry!! make that "for free of up to 4gb" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php