sx posteets tagged php  [ Profile ]

Sort by: Date / Title /

  1. 4 years ago
    1. echo substr($filename, strripos($filename, '.'),strlen($filename));
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2038"></script>
  2. 5 years ago
    1. preg_replace('/\\s{2,}/',' ',$string);
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1329"></script>
  3. 6 years ago
    1. <?php
    2.        $ads = array(
    3.        array("Banner" => "<a href=\"http://website1.net\"><img src=\"pic1.jpg\"></a>"),
    4.        array("Banner" => "<a href=\"http://website2.net\"><img src=\"pic2.jpg\"></a>"),
    5.        array("Banner" => "<a href=\"http://website3.net\"><img src=\"pic3.jpg\"></a>")
    6.        );
    7.     srand ((double)microtime()*10000);
    8.        $maxvalue = count($ads)-1;
    9.        $nr = rand(0,$maxvalue);
    10.        echo  $ads[$nr][Banner];
    11. ?>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1085"></script>
  4. sponsorised links
  5. 6 years ago
    1. <?php
    2.     echo "Referer:" . $_SERVER["HTTP_REFERER"];
    3. ?>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1081"></script>
  6. 6 years ago
    1. <?php
    2.     $url = "http://www.url.net/file.zip";
    3.     $file = "file.zip";
    4.     $esc = escapeshellarg($url);
    5.     exec("wget " . $esc);
    6.  
    7. //use ur extension and remove the //comandlines
    8.     //$shell = "tar -xzvf $file"; //tar
    9.     //$shell = "unzip $file"; //zip
    10.  
    11.     $shell = escapeshellcmd($shell);
    12.     exec($shell,$nu);
    13.  
    14. //del file
    15.     $del = "rm $file";
    16.     $del = escapeshellcmd($del);
    17.     exec($del,$nu);
    18.     print_r("done");
    19. ?>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1079"></script>
  7. 6 years ago
    1. <?php
    2. //copy dir to dir+timestamp
    3.     $shellCMD = 'cp -Rv /srv/www/htdocs/DIR /srv/www/htdocs/DIR'.time();
    4.     exec($shellCMD);
    5. ?>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1078"></script>
  8. 6 years ago
    1. <?
    2.     $host = "website.net";
    3.     $url = "http://$host/";
    4.     $check = @fsockopen($host80);
    5.     if($check) {
    6.         echo "The website <a href='$url' target='_blank'>$host</a> is available!";
    7.     }
    8.     else {
    9.         echo "The website<a href='$url' target='_blank'>$host</a> is <b>not</b> available!";
    10.     }
    11. ?>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1077"></script>
  9. 6 years ago
    1. <?   
    2.     $width = "120";   
    3.     $height = "30";   
    4.     $text = "welcome to my site";   
    5.     $pic = ImageCreate($width,$height);   
    6.     $col1 = ImageColorAllocate($pic,0,0,0);   
    7.     $col2 = ImageColorAllocate($pic,255,255,255);   
    8.    
    9.     ImageFilledRectangle($pic,0,0,500,30$col2);   
    10.     ImageString($pic358$text$col1);   
    11.     Header("Expires: ".date("r",time())."");   
    12.     Header("Content-type: image/jpeg");   
    13.     ImageJPEG($pic);   
    14.     ImageDestroy($pic);   
    15.  ?>   
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1076"></script>
  10. 6 years ago
    1. <?   
    2.     function no_spam($mail) {   
    3.     $str = "";   
    4.     $a = unpack("C*"$mail);   
    5.     foreach ($a as $b)   
    6.     $str .= sprintf("%%%X"$b);   
    7.     return $str;   
    8.     }   
    9. //example
    10.     $mail = no_spam("ma@il.com");   
    11.     $link  = '<a href="mailto:'.$mail.'">Mail</a>'
    12.     echo $link;   
    13. ?> 
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1075"></script>
  11. 6 years ago
    1. <?php   
    2.     $textfile = "random.txt";   
    3.     $quotes = file("$textfile");   
    4.     $quote = rand(0sizeof($quotes)-1);   
    5.     echo $quotes[$quote];   
    6.  ?>   
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1074"></script>

First / Previous / Next / Last / Page 1 of 2 (20 posteets)