View Full Version : Newbie question
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,
stoodder
03-15-2003, 02: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:
Spookster
03-15-2003, 02:05 AM
:confused:
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:
http://www.php.net/manual/en/tutorial.php
then move on to:
http://www.zend.com/
for tips, tutorials, samples, etc.
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...
stoodder
03-15-2003, 02: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
lord_raven
03-15-2003, 05: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...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.