Keyword

php not working

  • executor
  • executor's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 4 months ago #128898 by executor
php not working was created by executor
I added php includes into a k2 item but they are for some reason turned into comments instead of processed by the server.

Here is the code i put into the editor <?php include '/home/bypassga/public_html/secondaryphpincludes/flashcodeone.php'; ?> and here is whats on the page <!--

?php include '/home/bypassga/public_html/secondaryphpincludes/flashcodeone.php'; ?

-->

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #128899 by Lefteris
Replied by Lefteris on topic Re: php not working
Hi. You cannot put PHP code inside an item. It will never work. To execute PHP code in Joomla! without creating a module or plugin you have to either put it in the template files or use the K2 tools module which includes a custom code functionality.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • executor
  • executor's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 4 months ago #128900 by executor
Replied by executor on topic Re: php not working
I found a joomla extension that lets me put php code directly into k2 items.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum