Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • include and require statement in php

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 104
    Comment on it

    In php you can include the content of one PHP file into another PHP file using the following statement:

    include statement: It will produce a warning if the file is missing or uable to load the file and the script continues to execute.

    Syntax:

     include 'filename';

    require statement: It will produce a fatal error if the file is missing or uable to load the file and the stop the script.

    Syntax:

     require 'filename';

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: