Results 1 to 5 of 5

Thread: php file include is not working

  1. #1
    Join Date
    May 2014

    php file include is not working

    I want to inclide file with URL
    i tried with following ways

    include 'domain.com/file.php';

    both cases not working suggest me

  2. #2
    Join Date
    Mar 2012
    Include 'domain.com/file.php'; is the correct syntax, assuming that file.php is in the root directory of the site.

    1. What is the name of the calling file that this include command is in?
    2. How are you running the calling file?
    3. Is the include file on the same site as the calling file? if so, it is more usual to use relative addresing, e.g. if th files are in the same directory include 'file.php'; should suffice.

  3. #3
    Join Date
    Jun 2014
    Most probably the error would be in the path of your file.
    Try to have both the file in root directory the file you running and the one you including. Then try i think it should work then.

  4. #4
    Join Date
    Jul 2003
    Lansdale, PA
    Also make sure the "file.php" is valid php syntax and works correctly on its own.

  5. #5
    Join Date
    Apr 2014
    Please write what error you get and listing of file.php.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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

Recent Articles