Recently I was faced problem while attaching document on gmail using firefox browser. I was followed the below steps to resolve the problem in my firefox v32.0.3 browser. Step 1: In Firefox address bar, type “about:config”. Step 2: Agree to warranty warning. Step 3: In search area type “network.http.spdy”, It will list the filtered result …
Category: Uncategorized
Permanent link to this article: https://blog.openshell.in/2014/10/attachment-failed-on-gmail-using-firefox-32/
Sep 28
How to read large XML files efficiently using PHP?
Recently I was faced problem of parsing large XML file using PHP. While parsing small files are no problem and all its quickly parsed, an attempt to parse larger files often causes time-out or Internal Sever Error. We will not able to use DOM or SimpleXML extension to parse the large XML documents in PHP. …
Permanent link to this article: https://blog.openshell.in/2014/09/how-to-read-large-xml-files-efficiently-using-php/
Aug 21
Create URL Slug from Post Title using PHP
The following functions will helps to create search engine optimization url for the website. This will strip all the special characters and punctuation away from the URL and place hyphen in between each words. For acheving the required results, used regular expression function that replaces spaces between words with hyphens and its remove the special …
Permanent link to this article: https://blog.openshell.in/2014/08/create-url-slug-from-post-title-using-php/
Aug 02
How To Install Apache Tomcat 8 on Ubuntu
Apache Tomcat is an open source web server used to deploy and serve JavaServer Pages (JSP) and Java Servlets. This will helps you to install Apache Tomcat 8, Apache Tomcat 8 now has its first stable release: 8.0.9. Follow the steps to install Apache Tomcat 8 on Ubuntu: Step 1: Install Java 7 Before you …
Permanent link to this article: https://blog.openshell.in/2014/08/how-to-install-apache-tomcat-8-on-ubuntu/
Dec 27
What is Internationalization and localization?
One of the best way to reach larger audience across the globe is to have your applications in multiple languages. It is essential to understand some terminology. What is Internationalization? Internationalization refers to the ability of an application to be localized. What is Localization? The term localization refers to the adaptation of an application to …
Permanent link to this article: https://blog.openshell.in/2013/12/what-is-internationalization-and-localization/
Oct 23
Yii & google map integration
Now the yii and google map integration become easy with this super extension JQUERY-MAP. Extension url : http://www.yiiframework.com/extension/jquery-gmap/
Permanent link to this article: https://blog.openshell.in/2013/10/yii-google-map-integration/
Jul 18
Turn off resize textarea
It is very easy to turn off the users ability to resize the textarea. To turn off this feature, use the following css code. This is used to remove the users ability to resize the textarea. [css] textarea{resize: none} [/css] The two properties that can be used are max-width and max-height. This will give the …
Permanent link to this article: https://blog.openshell.in/2013/07/turn-off-resize-textarea/
Aug 02
MySQL: Get total number of rows when using LIMIT
A SELECT statement may include a LIMIT clause to restrict the number of rows return by the MySQL server. In some cases, it is desirable to know how many rows the SELECT statement would have returned without the LIMIT. To obtain the row count by include SQL_CALC_FOUND_ROWS option in the SELECT statement, and then execute …
Permanent link to this article: https://blog.openshell.in/2012/08/mysql-get-total-number-of-rows-when-using-limit/
Sep 20
PHP Automatic Session Logout
Automatic logout script if users have inactive more than 15 minutes [php] <?php session_start(); $inactive = 900; // Set timeout period in seconds if (isset($_SESSION[‘timeout’])) { $session_life = time() – $_SESSION[‘timeout’]; if ($session_life > $inactive) { session_destroy(); header("Location: logoutpage.php"); } } $_SESSION[‘timeout’] = time(); ?> [/php]
Permanent link to this article: https://blog.openshell.in/2011/09/php-automatic-session-logout/