Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 16:01:13

Author Topic: How can I use PHP code inside XML?  (Read 2520 times)

0 Members and 1 Guest are viewing this topic.

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
How can I use PHP code inside XML?
« on: 2017-05-10, 13:11:26 »
is it possible to put PHP code inside a XML document to be later executed? For example, can I say "<? phpinfo();?> in .xml

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: How can I use PHP code inside XML?
« Reply #1 on: 2017-05-10, 13:13:54 »
My guess is: i don't think you can do it directly. You have to follow XML syntax so you will probably need XML parser at some point to extract <? phpinfo();?> and then run it?

is it possible to put PHP code inside a XML document to be later executed? For example, can I say "<? phpinfo();?> in .xml
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How can I use PHP code inside XML?
« Reply #2 on: 2017-05-10, 14:22:44 »
Try add '.xml' for 'PHP-fpm Limit Extensions' in 'php configure'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: How can I use PHP code inside XML?
« Reply #3 on: 2017-05-11, 03:16:36 »
I added .xml. but not work.

How can I slove it?

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.041 seconds with 18 queries.

web stats analysis