View Full Version : Newbie question

03-15-2003, 02:56 AM
Hello, all. I've been wanting to learn PHP and I just picked up a PHP book today to help me. I've been thumbing through the book and noticed that a lot of the code is within the <HEAD> tags of the webpage. Is it possible (like with JavaScript and CSS) to create an external PHP file and link to an HTML page usink <link rel...>? I searched the board before posting and couldn't find an anser.

Thanx in advance,

03-15-2003, 03:04 AM
yup kinda i think what you mean is to include an external file from a page right???
stick this into the body tags of your code

<?php include('INCLUDED FILES URL'); ?>

hope that helps :thumbsup:

03-15-2003, 03:05 AM

My first piece of advice would be to don't ever look at that book again. lol

PHP code placement isn't restricted to any particular place in the page.

I would start looking at the PHP manual:


then move on to:


for tips, tutorials, samples, etc.

03-15-2003, 03:09 AM
Excellent! Good to know that all that code won't crowd the page.

I also checked out the PHP manual.

Thanx for the help guys...

03-15-2003, 03:09 AM
lol yea exactl;y books are oaky i find when i buy one inever actually read it i just like to fiddle around with the free cd software inside.. hey you cant blamne a 14 year old eh lol but yea its still a good idea though to go with what the pros say cause usually its right

03-15-2003, 06:32 AM
I still have my PHP book... opened it once and never opened it again... www.php.net is so much better... and searchable...