0

I am new to programming, and have developed the main design features of my website and need to be able to share what I have done across multiple pages. It is mostly HTML and CSS code, with a little java. I plan on using PHP next with MySQL next. I have read about php include files, which seem pretty straight forward. My question is, are php include files the best way to go? Or will this cause problems down the road? What are common ways to work around this.

Thank you!

1
  • Don use php includes for outside resourves (javascript files, css, etc.), use a proper <link> / <script>, it saves both the user & your server bandwidth as those static files can be cached. Commented Oct 1, 2010 at 23:51

1 Answer 1

1

Yes you can use php include files. For the CSS, put it in a css folder, or any folder, then:

<link rel="stylesheet" type="text/css" href="path-to-css/style.css" />

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.