• function getExtension($str) {
             $i = strrpos($str,".");
             if (!$i) { return ""; }
             $l = strlen($str) - $i;
             $ext = substr($str,$i+1,$l);
             return $ext;
     }
    $filename = stripslashes($_FILES['upload']['name']);
             //get the extension of the file in a lower case format
              $extension = getExtension($filename);
             $extension = strtolower($extension);
    echo $extension;

    Tags:
    PHP
  • <code>
      
    $to      = "testuser@domain.com"
    $from    = "testuser1@domaiin.com";
    $subject = "This Test for HTML View in Mail";
    $message = "<html>
    <head></head>
    <body>
    <h1>Hello World!..</h1>
    </body>
    </html>";

    $strHeader   = "";
    $strHeader  .= "From:".$from ."\n";
    $strHeader...

    Tags:
    PHP
  • This is Nice Tutorial on Select box using Ajax

    Please download the Attachment

    Tags:
    PHP

Pages

X