August 2011 archive

String Function in PHP

nl2br(): The nl2br() function adds the tag if it finds the carriage return (n) in the text. If you text is long and at many places carriage return is present, even then the nl2br() tag will replace all the occurrence of the carriage return with tag. Here is the syntax of the nl2br() tag: [php] …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/08/string-function-in-php/

String Functions in PHP [heredoc syntax]

The heredoc syntax: In addition of the single quote and double quote syntaxex, PHP provides another way to specify a string called heredoc syntax. This syntax turns out to be a extremely useful for specifiying large chunks of variable-interpolated text, because it spares you from the need to escape internal quotation marks. It is especially …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/08/string-functions-in-php-heredoc-syntax/

Setting up dual ip address in ubuntu

Hi, here is a simple way to setup dual ip in your ubuntu system if you already have eth0 as 192.168.0.10 then if you want 192.168.1.10 then use the following command to bring up a alias but this is temporary sudo ifconfig eth0:0 192.168.1.11 up To have a permanent dual ip update the /etc/network/interfaces file like the below …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/08/setting-up-dual-ip-address-in-ubuntu/

Using Dialup modems in ubuntu

hi all, Everyone will be familiar with configuring wired and wireless network in Ubuntu. But still at some point of time we may have the need to use dialup modem in ubuntu. here is a simple way to configure dialup modems in ubuntu. The following command will install gnome-ppp which is a gui based configuration tool for …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/08/using-dialup-modems-in-ubuntu/

How to Install Firefox5 on ubuntu

This quick guide is made for home user who are not familiar with official installation of firefox5. Open terminal and run the following commands sudo add-apt-repository ppa:mozillateam/firefox-stable This will install the repository of firefox5 sudo apt-get update This will update your package manager with the new firefox5 sudo apt-get install firefox Tadaaaa….. now close your …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/08/how-to-install-firefox5-on-ubuntu/

How to destroy a Confidential File completely in linux (Shred)

Some times you may worry if you accidentally delete a file. then after a Google you would be satisfied with the tools like getdataback, recovermyfile, foremost etc. Consider a situation that you have borrowed a pendrive from your friend or someone else and you copied some important or confidential files from your office and moved it to your PC or notebook …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/08/how-to-destroy-a-file-completely-in-linux-shred/