Keyword

How to make php echo in <script>

  • nxlevel solutions
  • nxlevel solutions's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago - 8 years 7 months ago #126726 by nxlevel solutions
How to make php echo in <script> was created by nxlevel solutions
Hi,

nevermind!
Last edit: 8 years 7 months ago by nxlevel solutions.

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

  • nxlevel solutions
  • nxlevel solutions's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago - 10 years 6 months ago #126727 by nxlevel solutions
Replied by nxlevel solutions on topic Re: How to make php echo in <script>
This is the last part left of my project and the deadline is extremely close. Could someone just help me get it done please. I will provide you with access to all files, etc to help me.

is anyone willing to help?

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

More
10 years 6 months ago #126728 by Lefteris
Replied by Lefteris on topic Re: How to make php echo in <script>
Hi. You need to clarify where is the file exactly that you need to add the PHP code. If you created the file and is outside of Joomla! it will never work. In general, a file in order to be able to execute php must have a .php extension. Then you can just use PHP as usual:
<h1>HTML content</h1>
<?php echo 'This is from PHP'; ?>

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

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


Powered by Kunena Forum