Your Open Source

Recently Added

Get Current location/URL

The getURL() function used to get the CURRENT page location with query strings etc., the function as follows, function getURL(){ $url = 'http://'.$_SERVER['HTTP_HOST']; if($_SERVER['QUERY_STRING'] !='') $url .= $_SERVER['SCRIPT_NAME'] .'?'.$_SERVER['QUERY_STRING']; else $url .= $_SERVER['REQUEST_URI']; return $url; }

  • 3
  • 03 Jul Fri 2009 10:07:09
  • Sekar
  • 01234

Creating Custom function or tag in Smarty templates

Smarty in-build a lot of function to customize the pages that we want.. the following ways to we can make a new custom function or tags, Step 1 :- Need to write the php function in the smarty plug-ins directory, function smarty_function_sitehost($params, &$smarty){ if(!isset($params['key'])) { $smarty->trigger_error("..

  • 7
  • 03 Jul Fri 2009 12:07:44
  • Sekar
  • 01234

YourOpenSource in Facebook Group

Right now, YOS in Facebook and twitter too. Please check it http://www.facebook.com/group.php?gid=51537100372 Please join us and share you thoughts.

  • 20
  • 29 Jun Mon 2009 03:06:03
  • Sekar
  • 01234

Google Search Tricks

You can filter the search results by using following argument, site: ----- eg:- site:youopensource.com Getting results from the site(youropensource.com) inurl: ----- eg:- inurl:test.pdf getting results matched the url of test.pdf. filetype: -------- eg:- filetype:pdf Gettings results depends upon the file types( pdf,doc) link: --..

  • 47
  • 24 Jun Wed 2009 05:06:28
  • Sekar
  • 01234

Date between in mysql

DATE BETWEEN IN MYSQL Syntax, SELECT * FROM table WHERE dateColumn BETWEEN {from_date} AND {to_date} Example :- SELECT * FROM table WHERE cdate BETWEEN '2009/01/01' AND '2009/06/23'

  • 36
  • 23 Jun Tue 2009 12:06:48
  • Sekar
  • 01234

Most Viewed

Trim function in CGI-PERL

Trim() function in PERL :- The following function to trim the strings, sub trim($) { my $string = shift; $string =~ s/^\s+//; $string =~ s/\s+$//; return $string; }

  • 48410
  • 30 Jul Wed 2008 08:07:40
  • Sekar
  • 12345

Change down arrow style in SELECT tag and Sourcecode downloads

how to change down arrow in SELECT tag :- You can change the dropdown down arrow through CSS & JS. its possible to change the dropdown box as you like. Please click the downloads link to get the source for this.

  • 15391
  • 27 Aug Wed 2008 09:08:16
  • Sekar
  • 12334

How to send mails with attachment in php

How to send mails with attachment in php :- You can send the email with attachment using PHP mail() function.

  • 13941
  • 08 Jul Tue 2008 10:07:20
  • Sekar
  • 12345

Linux basic commands:

Basic commands used in LINUX ;ls -- command used to list files and directoriesls -la -- command used to list attribe files also ls -l -- command used to list files and directories with file permisison Syntax: -------- ls filename mkdir -- command used to create a directories syntax:--------- mkdir directory name cat > filename -..

  • 12703
  • 15 Jun Sun 2008 10:06:00
  • Roger
  • 12344

Add swap file in linux

Procedure to add a swap file 1.You need to use dd command to create swapfile. Next you need to use mkswap command to set up a Linux swap area on a device or in a file.  Login as the root user 2. Type following command to create 512MB swap file (1024 * 512MB = 524288 block size): # dd if=/dev/zero of=/swapfile1 bs=1024 count..

  • 12231
  • 29 Jun Sun 2008 08:06:41
  • Gary
  • 01234

Featured
Top User's
Sekar
Posts 118
$60.04 USD
Damu
Posts 56
$13.02 USD
Psbharathy
Posts 9
$1.31 USD
Eric
Posts 6
$2.94 USD
Gary
Posts 6
$7.93 USD