Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Noob needs help!!! :p

    I simply need to know how to open another file into a php file: here it is;

    I'm using an "include-script"( i think, because I heard it from the guy who gave me this - whatever) - so the folder the index.php is conected to is "inc"

    so i need to write (?side=thepage) in the link... you sure understand it already.. ("side" is page on norwegian if you want to know)

    so i need to use a .php file to get a htm or html page showing...

    That means that i need to "include" the .htm/html-file to the php..

    ok..then..hehe.. what is the tag?

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Location
    The US of A
    Posts
    767
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Look in the PHP forum, there have been several topics posted on this subject already along with a few excellent solutions.

  • #3
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP includes are easy

    PHP Code:
    <?php include ("file.html"?>

  • #4
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    not working

    already tried that... Isn't working!

    Is there some other code i coukd use?

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Then your doing something wrong. Is your page that you are using the include on saved with a .php extension? Do you even have the file names correct?

  • #6
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Does your web server have PHP enabled?


  •  

    Posting Permissions

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