Get support from Xavier Media
It is currently Sun Dec 08, 2013 7:41 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: XML functionality?
PostPosted: Sun Dec 17, 2006 11:19 pm 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
is it possible to use the links to files in the hidden folders in xml documents so that the songs pulled up by a flash player in a password protected site would remain hidden from view?

using this code:

Code:
<A HREF="<? echo fileprotect("song.mp3",0); ?>">song name</A>


as a reference for this:

Code:
<location>http://www.site.com/hiddenfile/song.mp3</location>


changing it to this:

Code:
<location><? echo fileprotect("song.mp3",0); ?></location>


i think it's asking if xml and php can share a document. will the password protect page with the flash swf file pulling teh xml file location understand what it's pulling in?

thanks


this would be the answer to a lot of my recent needs, if so.

thanks.

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 18, 2006 5:39 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
I guess you can do that, but you need to password protect the XML file to get the file protection to work. You also need to create the XML file as an PHP files so the scripts can be run on your server.

/Andreas

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject: this is what i did
PostPosted: Mon Dec 18, 2006 11:40 pm 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
original xml (xspf) file, even saved and used as a txt file works:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://www.site.com/song.mp3</location>
</track>
</trackList>
</playlist>


got changed to this on your suggestion (i think):

Code:
<? include("protection.php"); ?>

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<location><? echo fileprotect("song.mp3",100); ?></location>
</track>
</trackList>
</playlist>


it got saved as a php file. the html to call up the embedded swf player calls to the php file to get the playlist information for the player, but as is typed, it does not work.

if we can get this to work, a lot of people would like to use your product for this alone.

the player i am using for this is the XSPF player.

tell me this will work, andreas

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 19, 2006 6:54 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
I have never tested this so I can't really give you a solution :(

/Andreas

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Registered users: xlreariasd


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Portal » Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[
SEO MOD © 2007 StarTrekGuide ]