1. Question:

    Difference between get and post method?

     

    Answer

    GET Method:get method is used for submitting small amount of data. Data shows in the URL, so it is not secure.

    POST Method:post method is used for submitting small amount of data. Data does not show URL, so it is  secure.


    1. Report
  2. Question:

    What is the difference between print and printf?

     

    Answer
    The difference of print and printf are as the print statement is used output data passed to it, but the printf statement is used to output a blend of static text and dynamic information stored within one or several variable.

    1. Report
  3. Question:Discuss five predefined subscript of of $_FILES super global variable? 

    Answer

    $_FILES[‘upload-name’][‘’name]: The name of the file as uploaded from the client to the server.
    $_FILES[‘upload-name’][‘type’]:
    The MIME type of the uploaded file.
    $_FILES[‘upload-name’][‘size’] :The byte size of the uploaded file.
    $_FILES[‘upload-name’][‘tmp_name’] :
    Once uploaded, the file will be assigned a temporary name before it is moved to its final location.
    $_FILES[‘upload-name’][‘error’]: An upload status code. Despite the name, this variable will be populated even in the case of success.


    1. Report
  4. Question:

    Why substr() is used?

     

    Answer

    The substr () function is used to return the part of a string str located between a predefined starting offset and length position.
    <?php
    echo substr("Hello World!"6,5);
    ?>


    1. Report
  5. Question:What is URL rewriting? 

    Answer
    Using URL rewriting we can convert dynamic URl to static URL Static URLs are known to be better than Dynamic URLs because of a number of reasons 
    1. Static URLs typically Rank better in Search Engines. 
    2. Search Engines are known to index the content of dynamic pages a lot slower compared to static pages. 
    3. Static URLs are always more friendlier looking to the End Users. along with this we can use URL rewriting in adding variables [cookies] to the URL to handle the sessions.

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd