Jump to content

How do I include PHP codes in an XML file?

- - - - -

  • Please log in to reply
3 replies to this topic

#1
AfTriX

AfTriX

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 586 posts
I have built a site and retrieving images dynamically through PHP code:

<img src="product_images/thumb/<?php echo $prodImage; ?>.jpg" border="0" width="150" />

At the same time I want to use an XML Image Gallery to navigate through the images, Currently I am using an image gallery which is generated by CoffeCup Flash Photo Gallery.

How I can include PHP code to point out the images in XML file.

I would be much appreciate someone can help on this problem.

Thanks,
Aftrix

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
You could encode the < and > using < and >, then you should have no problem.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Nokia N93

Nokia N93

    Newbie

  • Members
  • Pip
  • 5 posts

WingedPanther said:

You could encode the < and > using < and >, then you should have no problem.


Helllo

i have the same problem ,, i'm trying to edit the names of files in XML Flash Gallery
i have a PHP files i want to add to XML file
i didn't understand exactly where to encode the < and > using < and >,
Could u plz help me ??

#4
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 763 posts
You may interested with this thread (How do I include PHP codes in an XML file?).




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users