|
|
|
Thursday, 02 February 2012 23:54 |
// Simple PHP Math Image Captcha
// captcha width
$captcha_w = 150;
// captcha height
$captcha_h = 50;
// minimum font size; each operation element changes size
$min_font_size = 12;
// maximum font size
$max_font_size = 18;
// rotation angle
$angle = 20;
// background grid size
$bg_size = 13;
// path to font - needed to display the operation elements
$font_path = 'fonts/courbd.ttf';
// array of possible operators
$operators=array('+','-','*');
// first number random value; keep it lower than $second_num
$first_num = rand(1,5);
// second number random value
$second_num = rand(6,11);
?>
Credits: 4Dlink Weblists and web4link.com dir Read more: |
|
|
Thursday, 05 January 2012 01:30 |
Syntax: extract(array,extract_rules,prefix)
Sample code:
$a = 'Original';
$my_array = array("a" => "Cat","b" => "Dog", "c" => "Horse");
extract($my_array);
echo "\$a = $a; \$b = $b; \$c = $c";
?>
OUTPUT:
$a = Cat; $b = Dog; $c = Horse
Credit: 4DLink Dir and W3Schools.com | Web4link
 Read more: |
|
|
Sunday, 21 February 2010 11:21 |
The following rcscript generates an XML listing of the files contained within a file directory:
output: dir.xml (extract)
dir | tag
/home/james
Desktop
dir
Documents
dir
Downloads
dir
...
alias:
alias gdi='rcscript //job:generate-dir http://rorbuilder.info/r/dir.rsf'
Resources:
- Sinatra-Rscript: Read a file directory [dzone.com] Read more: |
|
|
|
|
|