Include PHP Code
Moderator: Thorsten
Include PHP Code
I want to do a PHP include for some of the articles I have written. I turned on the parser but my PHP code is just displaying without running. Is there a trick to get this to work.
My Code:
<code>print "Test";</code>
Output to screen:
<?php print "Test";?>
Thanks
My Code:
<code>print "Test";</code>
Output to screen:
<?php print "Test";?>
Thanks
Re: Include PHP Code
Hi,
Regards,
Matteo
you need to insert PHP code with its own tags, do not use <code>:os4me wrote:I want to do a PHP include for some of the articles I have written. I turned on the parser but my PHP code is just displaying without running. Is there a trick to get this to work.
My Code:
<code>print "Test";</code>
Code: Select all
<?php print "Test";?>
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Hi,
please use <?php and not <?
bye
Thorsten
please use <?php and not <?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
what do you want to do exactly? Post some lines of code or do you need it to be esecuted?
bye
Thorsten
what do you want to do exactly? Post some lines of code or do you need it to be esecuted?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
do you want this in a FAQ record? If yes, that won't work.
bye
Thorsten
do you want this in a FAQ record? If yes, that won't work.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
no, there's no other way.... why not set a link on that page?
bye
Thorsten
no, there's no other way.... why not set a link on that page?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
bye
Thorsten
correct, that's because of security reasons.os4me wrote:The frame code gets stripped out when I save.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist