MathewJ, your solution would have me editing two files all the time, that is precisely what i am trying to avoid.
Richard, sort of.....
My company needs to post a directory of all department heads, but we don't want the public seeing their email address or phone numbers, etc.
So I would like to edit one include file which has name, dept, title, phone, email, etc. And use the include file in a public page and private page, but use a php script to restrict the data on the public one.
Like this.
<---startpub--->html code including all data like name department address<---endpub--->Phone number email are outside the tags and therefore not included on the public page.