Thursday, August 25, 2011

iptables csf with openvz container

required modules

iptable_filter
iptable_mangle
ipt_limit
ipt_multiport
ipt_tos
ipt_TOS
ipt_REJECT
ipt_TCPMSS
ipt_tcpmss
ipt_ttl
ipt_LOG
ipt_length
ip_conntrack
ip_conntrack_ftp
ip_conntrack_irc
ipt_conntrack
ipt_state
ipt_helper
iptable_nat
ip_nat_ftp
ip_nat_irc

How to test?
perl /etc/csf/csftest.pl
read more: http://kb.parallels.com/en/746

Monday, August 15, 2011

optimizing large database

http://viralpatel.net/blogs/2009/08/fast-data-copy-with-create-table-select-from-in-plsql.html

mysqli tutorial

moving from procedural coding style to OOP this article telling basic information and maybe helpfull


Getting some info on the result from the mysql database:
 
 $mysqli = new mysqli('localhost','db_user','my_password','mysql'); // Get all the MySQL users and their hosts $sql = "SELECT user, host FROM user"; // If the query goes through if ($result = $mysqli->query($sql)) { // If there are some results if ($result->num_rows > 0) { // Let's show some info echo 'There were '.$result->num_rows.' rows returned. '; echo 'We selected '.$result->field_count.' fields in our query. '; echo 'Our thread ID is '.$mysqli->thread_id.' '; // Ok, let's show the data while ($row = $result->fetch_object()) { echo 'Username: '.$row->user.' :: Host: '.$row->host.' '; } // end while loop } else { echo 'There are no results to display. Odd how we connected to this database and there are no users.'; } // end else } else { // Notice the error would be within the mysqli class, rather than mysql_result printf("There has been an error from MySQL: %s",$mysqli->error); } // end else // Close the DB connection $mysqli->close(); ?>

also read mysql performance

Sunday, August 14, 2011

php tutorials

http://www.askaboutphp.com/

recently browsing about date and time manipulation


this website was bookmark here and there are another new thing to explore like codeigniter and jquery. nice step by step tutorial.
Related Posts Plugin for WordPress, Blogger...