Tuesday, 11 March 2014

Import Data In folder in php

Octal Enterprises


step 1: create Folder in wamp server/ www/folder name File
step 2: copy my code and paste in your php file
Step 3: Run Your Program
What yar u can import any file in our file folder enjoy-->

<?php
if(isset($_REQUEST["submit"]))
{
$file=$_FILES["file"]["name"];
$temp=$_FILES["file"]["tmp_name"];
$path="file/".$file;
$file1=explode(".",$file);
$ext=$file1[1];
$allowed=array("jpg","mp4");
if(in_array($ext,$allowed))
{
move_uploaded_file($temp,$path);


}
else
{
echo"<script>alert('invalid file')</script>";
}

}
?>

<html >
<head>

</head>

<body>
<form action="" name="form1" id="form1" method="post" enctype="multipart/form-data">
<table>
<tr>
<td>file</td>
<td><input type="file" name="file" id="file" /></td>
</tr>
<tr>
<td><input type="submit" id="submit" name="submit" value="submit" /></td>
</tr>
</table>
</form>
</body>
</html>

Monday, 10 March 2014

Design of Shapes Using CSS

Octal Enterprises


1) Up-Triangle 
   
            Code : #up-triangle
                  
                
                     width: 0; 
                     height: 0; 
                     border-bottom: 120px solid green; 
                     border-left: 60px solid transparent; 
                     border-right: 60px solid transparent; 
                }

2) Down-Triangle

             Code : #down-triangle

                {
                      width: 0; 
                      height: 0;
                      border-top: 80px solid pink;
                      border-left: 60px solid transparent; 
                      border-right: 60px solid transparent; 
                } 

3) Left-Triangle

              Code : #left-triangle

               {
                  
                     width: 0;
                     height: 0;
                     border-right: 100px solid orange;
                     border-top: 50px solid transparent;
                     border-bottom: 50px solid transparent;

              }


Keep Connected With Octal Enterprises And learn programming . . .

Saturday, 8 March 2014

Design of Shapes Using CSS

Octal Enterprises

1) circle 
   
            Code : #circle 
                  
                
                      width: 140px;
                      height: 140px;
                      background: red; 
                     -moz-border-radius: 70px; 
                     -webkit-border-radius: 70px; 
                     border-radius: 70px;
                }

2) square

             Code : #square

                {
                       width: 140px; 
                       height: 140px; 
                       background: blue; 
                } 

3) Diamond

              Code : #diamond

               {
                  
                     width: 80px; 
                     height: 80px; 
                     background: purple;
                     margin: 3px 0 0 30px;
   
    /* Rotate */

         -webkit-transform: rotate(-45deg);
         -moz-transform: rotate(-45deg);
         -ms-transform: rotate(-45deg);
         -o-transform: rotate(-45deg);
         transform: rotate(-45deg);
   
/* Rotate Origin */

         -webkit-transform-origin: 0 100%;
         -moz-transform-origin: 0 100%;
         -ms-transform-origin: 0 100%;
         -o-transform-origin: 0 100%;
         transform-origin: 0 100%;
                  
                  } 

Keep Connected With Octal Enterprises And learn programming . . .

Thursday, 6 March 2014

Use of String function

Octal Enterprises 

<?php
      echo substr("Octal enterprises",0,18)."<br>";
           echo strtr("Octal Enterprises","oE","Oe");
                 $arr = array("Octal" => "Hello", "Enterprises" => "Friends");
                        echo strtr("Octal Enterprises",$arr);
                              $firstName = 'Octal Enterprises';
                                    $greeting = 'Hello';
                                    echo $greeting . ' ' . $firstName . '!';
                              echo strlen("Octal Enterprises");
                 echo strrchr("Octal Enterprises! Software Development Company!","Octal");                            
echo strrpos("Octal Enterprises! Software Development Company !","!");                                               
          echo strtoupper("octal enterprises!");
  ?>      
Keep Connected With Octal Enterprises And learn programming . . .


Tuesday, 4 March 2014

eEye Security System

Octal Enterprises 





eEye Security System

eEye Security System established in 2014, It is an india's great and trustfull security system. eEye provide you third eye for protect your home,offices, Precious thing and etc. eEye is worked with latest technology and highly quality cctv products with also night vision cameras which are protect you and your precious thing in night also and always keep its eye on your precious thing and fulfill yourtrust by keep secure it.

Our New Website Launch :

http://eeye.octalenterprises.com