SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: newbie question

  1. #1
    SitePoint Member Zuzu's Avatar
    Join Date
    Oct 2004
    Location
    antwerp
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    newbie question

    Hello all

    I have started using php just now, so this may be a really stupid question :

    can I put just code in an .inc.php file or do I have to open and close html, head and body elements like in any other html page?

  2. #2
    SitePoint Evangelist djdykes's Avatar
    Join Date
    Feb 2005
    Location
    Chester, Cheshire
    Posts
    565
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    as long as your code has the open and close PHP tags around it in the inc.php you will be fine.

  3. #3
    SitePoint Member Zuzu's Avatar
    Join Date
    Oct 2004
    Location
    antwerp
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! I'll do that then!

    Quote Originally Posted by djdykes
    as long as your code has the open and close PHP tags around it in the inc.php you will be fine.


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
  •