Wednesday, 26 February 2014

How to show swf(Flash) file in power point

Hi Folks Flash is an ultimate software nowadays for making animation. Mainly people used flash animation file in websites in swf format. If we could use these swf file in any other application like power point then it’ll make our world easier just take a look on following section and don’t tell me thanks……


For insert swf file in power point you need to show developer tab in ribbon control which doesn't visible by default.

  •        Click office button
    ·         Select power point option
    ·         Select Popular tab
    ·         Check  show Developer tab in the ribbon

Monday, 17 February 2014

Save Flash(SWF) file from a website

Swf file is an abbreviation for shockwafe Flash object which is animated file run by flash player in browser window. Many times we want to save any website swf on our local PC for offline uses or any other personal uses. Here I am showing a way front of you that how can you download swf file its very simple just take a look.

In chrome 


 You must open chrome in developer mode for save swf file you can open this mode using Cntl+Shift+I or as in figure..


When you’ll click on developer tools following windows will be open

Thursday, 7 November 2013

File Upload in PHP

Hi there
Uploading file on server is a process of getting data from user. you cannot ignore it and every web developer needs upload file.php has some built in function which helps to upload file take a look on following line..
Control
File up loader
Submit button
Code
<?php
       $msg="";
       if(isset($_POST['submit'])
      {
           if($_FILES['file']['name']!="")
          {
   $extnsn=end(explode(".", strtolower($_FILES['file']['name'])));
    if($extnsn=="rtf" || $extnsn=="doc" || $extnsn=="docx" || $extnsn=="txt" || $extnsn=="pdf")
    {                                                                
              if(($_FILES['file']['size']/1024)>1024)
             {
                      $msg="Sorry ! Maximum upload file  size is  1024 KB";
              }
              else
              {
                     move_uploaded_file($_FILES['file']['tmp_name'],"resume/".$r[0].".".$extnsn);
                      $msg="Thanks for uploading  file";
                      <?php
                             echo $msg;
                      ?>  

Saturday, 12 October 2013

PHP form tutotial

An HTML form is a section of a document containing normal content, markup, special elements called controls (checkboxes, radio buttons, menus, etc.), and labels on those controls. Users generally "complete" a form by modifying its controls (entering text, selecting menu items, etc.), before submitting the form to an agent for processing (e.g., to a Web server, to a mail server, etc.)

Methods

The method attribute specifies how to send form-data (the form-data is sent to the page specified in the action attribute).
The form-data can be sent as URL variables (with method="get") or as HTTP post transaction (with method="post").
Notes on GET:
  • Appends form-data into the URL in name/value pairs
  • The length of a URL is limited (about 3000 characters)
  • Never use GET to send sensitive data! (will be visible in the URL)
  • Useful for form submissions where a user want to bookmark the result
  • GET is better for non-secure data, like query strings in Google
Notes on POST:
  • Appends form-data inside the body of the HTTP request (data is not shown is in URL)
  • Has no size limitations
  • Form submissions with POST cannot be bookmarked

How to Cancel PHP form submission using javascript


<?php 

$msg="";

if(isset($_POST['submit']))

{
$msg="ok";//put your code here
}
?>