Cant get include to work...
- From: johnwebster9865 <johnwebster9865@xxxxxxxxx>
- Date: Tue, 22 Jan 2008 07:21:01 -0800 (PST)
Hi
This may be easy to most of you, but as a newbiw; I'm struggling.
I am bringing in an include into a php file, but cant run the commands
within the include.
As an example, Within my php page I write:
{php}include("content/myinclude.php");{/php}
and the contents of myinclude.php is:
{php}
print "Hello";
{/php}
<br />This is just placeholder text
Then when I view the page in the browser I see that the include is
being brought in but is displayed as:
{php} print "Hello"; {/php}
This is just placeholder text
And the {php} doesn't execute.
I have set both the include and the page it is being brought into as
executable on the unix server it is sitting on.
I am right in saying that the result should only be:
Hello
This is just placeholder text
Aren't I?
Many Thanks
John
.
- Follow-Ups:
- Re: Cant get include to work...
- From: Jensen Somers
- Re: Cant get include to work...
- From: Jeff Gaines
- Re: Cant get include to work...
- From: ZeldorBlat
- Re: Cant get include to work...
- From: johnwebster9865
- Re: Cant get include to work...
- Prev by Date: Re: text parsing
- Next by Date: Re: Cant get include to work...
- Previous by thread: Parallel Scripts
- Next by thread: Re: Cant get include to work...
- Index(es):
Relevant Pages
|