Feeds:
Posts
Comments

Archive for March, 2008

IE8

Hey folks, Microsoft has again come up with an innovative, superb product!! Microsoft’s next-generation web browser, Internet Explorer 8, has arrived. In a surprising move, after the demo of IE8 and its new features at today’s session of the MIX08 conference, the startling announcement was made: “It’s available for download now”. The new browser showcases many new features and improvements, like Facebook and eBay integration, standards compliance, and the ability to work with AJAX web pages. What’s most notable about IE8, though, is more than a sum of its parts. If anything, this launch shows that Microsoft is not taking Firefox’s creep into browser market share lightly. This is another feather in Microsoft’s cap!
Click here for more info.

Read Full Post »

mysql_connect() and mysql_pconnect() both are working for database connection but with little difference. In mysql_pconnect(), ‘p’ stands for persistance connection.

When we are using mysql_connect() function, every time it is opening and closing the database connection, depending on the request .

But in case of mysql_pconnect() function,
First, when connecting, the function would try to find a (persistent) connection that’s already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection.
Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the connection will remain open for future use (mysql_close() will not close connection established by mysql_pconnect()).

mysql_pconncet() is useful when you have a lot of traffice on your site. At that time for every request it will not open a connection but will take it from the pool. This will increase the efficiency of your site. But for general use mysql_connect() is best.

I think this is a very imp concept in case of Database Connectivity.
HTH 🙂

Read Full Post »