Archive

Archive for August, 2009

Fairytale Gone Bad lyrics by Sunrise Avenue – Filestube Lyrics

August 30th, 2009 karlosp No comments
Categories: Malo mešano Tags:

PHP post without cUrl

August 29th, 2009 karlosp No comments
PHP:
  1. <?php
  2.  
  3. $postdata = http_build_query(
  4.     array(
  5.         'var1' => 'some content',
  6.         'var2' => 'doh'
  7.     )
  8. );
  9. $opts = array('http' =>
  10.     array(
  11.         'method'  => 'POST',
  12.         'header'  => 'Content-type: application/x-www-form-urlencoded',
  13.         'content' => $postdata
  14.     )
  15. );
  16. $context  = stream_context_create($opts);
  17. $result = file_get_contents('http://example.com/submit.php', false, $context);
  18.  
  19. ?>

Categories: php_mysql Tags:

Linux baby rocker – Snotr

August 29th, 2009 karlosp No comments

Categories: Malo mešano Tags:

ChordFind.Com – Guitar Chord Finder

August 28th, 2009 karlosp No comments
Categories: Malo mešano Tags:

YouTube – Carlos Mencia stand up comedy very funny

August 23rd, 2009 karlosp No comments
Categories: Malo mešano Tags:

YouTube – Sisters Tolmachevy Katyusha, Катюша Den pobedy 2007

August 21st, 2009 karlosp No comments
Categories: Malo mešano Tags:

YouTube – Katjuša

August 21st, 2009 karlosp No comments
Categories: Malo mešano Tags:

Katjuša (pesem) – Wikipedija, prosta enciklopedija

August 21st, 2009 karlosp No comments

Besedilo

rusko

Расцветали яблони и груши,

Поплыли туманы над рекой;

Выходила на берег Катюша,

На высокий берег, на крутой.

Выходила, песню заводила

Про степного, сизого орла,

Про того, которого любила,

Про того, чьи письма берегла.

Ой, ты песня, песенка девичья,

Ты лети за ясным солнцем вслед,

И бойцу на дальнем пограничье

От Катюши передай привет.

Пусть он вспомнит девушку простую,

Пусть услышит, как она поёт,

Пусть он землю бережёт родную,

А любовь Катюша сбережёт.

Расцветали яблони и груши,

Поплыли туманы над рекой;

Выходила на берег Катюша,

На высокий берег, на крутой.

slovensko

Zacvetele jablane in hruške,

vstale so meglice iznad rek,

prišla je na strmi breg Katjuša,

prišla na visoki strmi breg.

In zapela pesem čez poljane,

o sokolu širnih je daljav

in o njem, ki ljubi ga vdano,

ki ji pismo drobno je poslal.

Ti letiš od drugih ptic hitreje

Mojo pesem nesi v daljni kraj

Partizanu, ki nam brani meje

Lep pozdrav Katjušin mu predaj.

Misli naj na ljubico edino,

ki mu poje pesem čez gore

naj obrani našo domovino

jaz ohranim svoje mu srce.

Zacvetele jablane in hruške,

vstale so meglice iznad rek,

prišla je na strmi breg Katjuša,

prišla na visoki strmi breg.

via Katjuša (pesem) - Wikipedija, prosta enciklopedija.

Categories: Malo mešano Tags:

Asynchronous HTTP request in PHP

August 21st, 2009 karlosp No comments
PHP:
  1. function curl_post_async($url, $params)
  2. {
  3.     foreach ($params as $key => &$val) {
  4.       if (is_array($val)) $val = implode(',', $val);
  5.         $post_params[] = $key.'='.urlencode($val);
  6.     }
  7.     $post_string = implode('&', $post_params);
  8.  
  9.     $parts=parse_url($url);
  10.  
  11.     $fp = fsockopen($parts['host'],
  12.         isset($parts['port'])?$parts['port']:80,
  13.         $errno, $errstr, 30);
  14.  
  15.     pete_assert(($fp!=0), "Couldn't open a socket to ".$url." (".$errstr.")");
  16.  
  17.     $out = "POST ".$parts['path']." HTTP/1.1\r\n";
  18.     $out.= "Host: ".$parts['host']."\r\n";
  19.     $out.= "Content-Type: application/x-www-form-urlencoded\r\n";
  20.     $out.= "Content-Length: ".strlen($post_string)."\r\n";
  21.     $out.= "Connection: Close\r\n\r\n";
  22.     if (isset($post_string)) $out.= $post_string;
  23.  
  24.     fwrite($fp, $out);
  25.     fclose($fp);
  26. }

Categories: php_mysql Tags:

FTP Client Software – Compare and download free FTP Programs

August 20th, 2009 karlosp No comments
Categories: Malo mešano Tags:

Windows 7 Notepad++ “Unable to create directory for file C”

August 18th, 2009 karlosp No comments

In C:\program files\notepad++\plugins create file FTP_synchroniz and give it full control for current user. More details on:

 

http://www.technicallychris.com/2009/06/13/problems-using-the-notepad-ftp_synchronize-plugin-with-vista/

Categories: Malo mešano Tags:

Joomla send email with PHP

August 16th, 2009 karlosp 1 comment
PHP:
  1. <?php
  2. define( '_JEXEC', 1 );
  3. define('JPATH_BASE', dirname(__FILE__) );
  4.  
  5. define( 'DS', DIRECTORY_SEPARATOR );
  6.  
  7. require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
  8. require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
  9.  
  10.  $message =& JFactory::getMailer();
  11.   $message->addRecipient("example@gmail.com");
  12.   $message->setSubject('Your subject string');
  13.   $message->setBody("Your body string\nin double quotes if you want to parse the \nnewlines etc");
  14.   $sender = array( 'sender@email.address.org', 'Sender Name' );
  15.   $message->setSender($sender);
  16.   $message->addAttachment('htaccess.txt');
  17.   $sent = $message->send();
  18.   if ($sent != 1) echo 'Error sending email';
  19.   else
  20.   echo "OK";
  21.  
  22. ?>

Categories: php_mysql Tags:

Find IP

August 14th, 2009 karlosp No comments

Find IP

You get onto a network and can't, or don't want, to use DHCP, how to you find out what IP addresses are available? Find IP is a bash script inspired by a an app called marco which performs the same task but is written in python and requires a number of libraries, Find IPs only dependency is arping.

Download Find IP.

See the README file for usage notes.

via Find IP - DigiNinja.

Categories: Linux Tags:
71258 pages viewed, 274 today
38330 visits, 133 today
FireStats icon Powered by FireStats