Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Oct 2007
    Posts
    241
    Member #
    15910
    In my web page I wanted to include two files. They were a regular word document first, then I saved them in the web page format you see below. And uploaded them to my web directory. However they dont show up...(Note: There are no errors in spelling of file names, directories etc...so that is not the reason.) Any ideas?
    <?php
    include("resume.mht");
    ?>
    <?php
    include("r1.htm");
    ?>

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,694
    Member #
    5580
    Liked
    717 times
    What do you see when you view the page?
    is the spot blank, or do you see the PHP code instead?

    Is there a website we can look at?


  4. #3
    Senior Member
    Join Date
    Oct 2007
    Posts
    241
    Member #
    15910
    Resolved...It was because my file extensions were html instead of php..and then I made it work with iframe....( php include still didnt work, dont know why, but regardless it works now....

  5. #4
    Senior Member
    Join Date
    Dec 2008
    Posts
    483
    Member #
    17875
    Liked
    1 times
    php included files have to have a .php extension..thats why it didnt work
    change the extension of your pages to .php and include them the way u were doing before

    <?php
    include "page1.php";
    include "page2.php";
    ?>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:54 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com