Posts: 10
Name: Daniel Leydon
Location: England, Kent, Canterbury
|
hi im dan im new here and im a little stuck.
i want to echo some code into the head tag of my site but only on certain pages which are contained in a certain directory
ive had a mess around and nothing ive done seems to do it without an error message so was looking for a bit of help ... cheers  im not a php wizzard far from it im just a keen ammatuer :P
here is my code atm
PHP Code:
<?php $directory = "getcwd()"; $blogdirectory = "/blog/"; if ($directory == $blogdirectory) echo blah blah blah ?>
i only want to include the file or echo the content when its in the blog directory and deeper not in any other directory if the content is echoed in any toher directory it wont find the files and brings upa error message its for a custom wordpress blog
thanks in advance
Dan. DJ Esi
Last edited by Dj-Esi; 08-10-2009 at 12:23 PM..
|