Cant get include to work...



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

.



Relevant Pages

  • Re: custom printing
    ... > is it possible to print certain details on a fixed area of a paper ... > using PHP? ... has functions for creating PDF files. ... same thing is to create an uncompressed PDF file with placeholder text ...
    (comp.lang.php)
  • Re: Extracting text between tags is tricky!
    ... would do that job if PHP would not display: ... > okay, your solution works with my example, but not with my html-template. ... > It does only find my placeholder when it is inside the last block. ...
    (comp.lang.php)
  • Re: Cant get include to work...
    ... I am bringing in an include into a php file, but cant run the commands ... This is just placeholder text ... And the doesn't execute. ...
    (comp.lang.php)
  • Re: Cant get include to work...
    ... I am bringing in an include into a php file, ... This is just placeholder text ... And the doesn't execute. ...
    (comp.lang.php)
  • Re: IIS 6.0 on Windows Server 2003
    ... If PHP insists on using CMD.EXE to execute the shellcommand on the ... server, then no, you have no choice -- you must give read permissions to the ... this would be a security vulnerability caused by PHP. ...
    (microsoft.public.inetserver.misc)