From: Javi <ja...@gs...> - 2004-03-10 10:16:26
|
Hi. Thanks all for your answers. Michael, my real full name is Javier Garcia (Stolz is my nick). Here is an "improvised" TO DO list : -add a function to fetch data (not only the number of rows) from the data= base -use persistent connections (connect on init and disconnect on exit) to i= mprove CPU usage -add some kind of connection trackin -set default server, user , pass and database in the Variables if mySQLquery() is called with: 5 args, do it kike the old way 2 args, use them like database and query, use default server, user and = pass 1 arg, use it like query, use default server, user , pass and database -add an argument to mySQLstatus funtion. The argument will indicate what to return:Uptime, Threads, Questions,Sl= ow queries, Flush tables,... If uptime, return it Like: Days,hours,minutes > For the variables I would choose a different approach: specify server,=20 > user and password directly in the config file, e.g. >=20 > MySQL { > =A0 =A0Server 'foo.bar' > =A0 =A0User =A0 'michael' > =A0 =A0Password 'swordfish' > } How can I get the variables from the config file, is there any function? Thanks. bye. |