Pramod T P

Search
Skip to content
  • Home
  • PHP
  • WordPress
  • Linux
  • Magento
  • My SQL
  • Profile
  • comments

Monthly Archives: September 2011

Linux

How to find Directory Size – Linux

September 29, 2011 Pramod T P Leave a comment

du -sch FOLDER-NAME

CommandLinuxUbuntu
Javascript

javascript load a url in new tab

September 28, 2011 Pramod T P

javascript:window.open(‘www.example.oom’,’_blank’)

FunctionsJavascript
Linux

Install rar on ubuntu

September 26, 2011 Pramod T P Leave a comment

1) Goto terminal and type the command   sudo apt-get install rar

OR

2)Goto System->Administration->Synaptic Package Manager

Search for the package named rar  and mark for installation. Then Apply.

 

CommandLinuxUbuntu
PHP

check if value present in array – PHP

September 24, 2011 Pramod T P Leave a comment
<?php
if(in_array(“val”,$array))
echo “Exists” ;
?>
ArrayFunctionsPHP
PHP

Validate a number – PHP

September 24, 2011 Pramod T P Leave a comment
if(!is_numeric($number))
echo “Not a number”;
FunctionsPHP
PHP

Validate a phone number – PHP

September 24, 2011 Pramod T P Leave a comment
if( !preg_match(“/^([1]-)?[0-9]{3}-[0-9]{3}-[0-9]{4}$/i”, $phone_number) )
echo ‘Invalid Phone Number’;

FunctionsPHP
Vbulletin

Code to display the option to select languages – vbulletin

September 24, 2011 Pramod T P Leave a comment
<vb:if condition=”$show[‘languagechooser’]”>
<select name=”langid” onChange=”switch_id(this, ‘lang’)”>
<optgroup label=”{vb:rawphrase quick_language_chooser}”>
{vb:raw languagechooserbits}
</optgroup>
</select>
</vb:if>
PHPVBulletin
Vbulletin

Code to display the option to select templates – vbulletin

September 24, 2011 Pramod T P Leave a comment
<vb:if condition=”$show[‘quickchooser’]”>
<select name=”styleid” onChange=”switch_id(this, ‘style’)”>
<optgroup label=”{vb:rawphrase quick_style_chooser}”>
{vb:raw quickchooserbits}
</optgroup>
</select>
</vb:if>
PHPVBulletin
Linux

Install font Ubuntu

September 19, 2011 Pramod T P Leave a comment
1) Download the required font
2) Create the folder mkdir /home/<YOUR_USERNAME>/.fonts
3) Move the downloaded font to the folder “.fonts“
LinuxUbuntu
Linux

Linux command install tasksel – ubuntu

September 16, 2011 Pramod T P Leave a comment
sudo apt-get install tasksel

 

CommandLinuxUbuntu

Zend | Magento Certified PHP | eCommerce Architect

For Latest Updates
Visit phpcodez.com

Categories

Recent Posts

  • Regular expression
  • preg_match
  • Redirect root domain to a subdomain .htaccess
  • Redirect root domain to a subfolder .htaccess
  • Force SSL htaccess
September 2011
M T W T F S S
 1234
567891011
12131415161718
19202122232425
2627282930  
« Aug   Oct »

Recent Comments

togel online's avatartogel online on How to terminate the current s…
business funding's avatarbusiness funding on compare two strings – ja…
unsecured loans uk's avatarunsecured loans uk on Function to add an element int…
treating back pain's avatartreating back pain on Submit HTML form to pop up pag…
Pura Cleanse's avatarPura Cleanse on Add the block "Based on y…
  • RSS - Posts
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Pramod T P
    • Already have a WordPress.com account? Log in now.
    • Pramod T P
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar