Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/database/database.php:2) in /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/session/session.php on line 423

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/database/database.php:2) in /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/session/session.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/database/database.php:2) in /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/session/session.php on line 426

Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/database/database.php:2) in /home/content/f/e/r/ferasferas1/html/scriptslibrary/templates/ja_purity/ja_templatetools.php on line 49
Free Programming Tutorials & Source Code - The Scripts Library Community

Free Programming Tutorials & Source Code

 
  • Increase font size
  • Default font size
  • Decrease font size
ScriptsLibrary.NET is a public source code repository which let you share your code, scripts, tutorials and useful materials with other developers.

A quick start:
  1. Browse the Code Library

  2. Subscribe to the RSS Feeds

  3. Share your code


 

Remove characters from a string except numbers and letters

If you want to remove all characters and special symbols from a string in php, use the following code snippet:


 
<?php

$string = "remove *unwanted !character% from my string 1212&&";
$clean_string= ereg_replace("[^A-Za-z0-9]", "", $string);
echo $clean_string

?>
 

Get Local IP Address List Using VB.NET

Get local IP address list using VB.NET.
Read more...
 

Get Computer Name Using VB.NET

Get a computer’s name by using the static method Dns.GetHostName in VB.NET

Required namespace for this snippet:
Read more...
 

Count Words in a Text String in VB.NET

A simple function that count number of words in a given text string, assuming that it’s delimited by spaces:
Read more...
 

PHP Function to Prevent SQL injection

Function to clean user input string to prevent SQL injections:
Read more...
 

Play Movie Flash File using HTML

A simple code snippet demonstrates how to play a Flash Movie in Object Tag:
Read more...
 

Socket Connect and Data Send in VB.NET

Function to connect to host machine, and send data via TCP Socket in VB.NET

First, add the following namespace
Read more...
 

Auto-Fill ComboBox Using C#

This is simple code of how you fill a combobox automatically in C#.
First, lets bind the combo with some data:
Read more...
 

Like it? Share it!

Follow on Twitter