SitePoint Sponsor

User Tag List

Results 1 to 19 of 19

Threaded View

  1. #1
    SitePoint Enthusiast nguip's Avatar
    Join Date
    Apr 2001
    Location
    Malaysia
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi..

    I'm very new in php so allow me to ask some silly questions here

    Can someone explain to me what is the different between require and include ?

    eg: what's the different between:-
    Code:
     
    require('includes/header.php'); 
    include('includes/header.php');
    And how to specific the location in the include() ?
    If i'm working in c:\www\mysite\scripts\project1\ and I want to include a file in c:\www\mysite\includes\header.php Does this work ?

    Code:
    include('../../includes/header.php');
    Last edited by nguip; Apr 12, 2001 at 01:15.
    Ngu I.P.
    Web Developer


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •