Escaped characters

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Escaped characters

Postby kepler » 16. July 2018 13:51

Hi

I have a small problem with a plugin I've developed - it works perfectly in any webserver. The problem is that the included variables like:

Code: Select all
<script src="<? echo plugins_url('myPlugin') ?>/js/jquery.min.js"></script>


give an error, since its read like:

Code: Select all
<script src="%3C?%20echo .....


How can I solve this issue?

Kind regards

Kepler
kepler
 
Posts: 5
Joined: 07. June 2017 08:43
XAMPP version: 5.6.30
Operating System: Windows

Re: Escaped characters

Postby Altrea » 16. July 2018 16:07

instead of <? echo use <?php echo or the short term <?=
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9198
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Escaped characters

Postby kepler » 16. July 2018 16:38

Altrea wrote:instead of <? echo use <?php echo or the short term <?=


Good afternoon,

Thank you very much for the tip: <?php works fine and it's the correct way to do it, like <?=. My bad....

Kind regards,

Kepler
kepler
 
Posts: 5
Joined: 07. June 2017 08:43
XAMPP version: 5.6.30
Operating System: Windows


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 32 guests