The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

now what i want is to display the latest 3 images from my modelimage folder(the files are uploaded through php and filename is added to database and file is transferred to folder)
googling and going through some tutorials...
i came up with this..

i was not trying to exploit xml....well i am new to mod rewrite but intrepretreting all the php files as xml or all xml files as php...there can be problem in the run long...
so was just trying to be safe...

is that only the solution...

i searched the whole day..
can any body me a good link to flash slideshow backed by php(mysql)
i found the one called ..manni.us...
but it has its one link for whole movie which cannot be removed..
and doesnt work on ie6...

other actually no luck...
finally i got it work but it is xml based...

so any others..any body..

any way even this this is mod rewrite only option left now...
i am not sure but how about putting the swf file in the php page..and every time the php page is excessed it outouts to xml files and updates it.,..

but i am confused how to output..and fear it will be too clumsy...

any way thanks
if this problem is solved i guess we can convert any xml based slideshow to php...

You got the idea of mod_rewrite all wrong. You can simply rewrite images.php to images.xml, leaving other all xml files completely out of scene. It's ForceType you're talking about that would make all your xml files php parseable.

You got the idea of mod_rewrite all wrong. You can simply rewrite images.php to images.xml, leaving other all xml files completely out of scene. It's ForceType you're talking about that would make all your xml files php parseable.

so in our scenario what can we do...
save second file and xml and mod rewrite in htacess to intrepret as php?

Use mod_rewrite rule to pass the handle to images.php when images.xml is requested:

RewriteRule ^images.xml$ images.php

that means i need add this line to htacess file ...RewriteRule ^images.xml$ images.php(as i have said i am new to mod rewrite)
by the way what should be done to test it locally..should we need to make htacess file...

next thing i have doubt there may be problem with the php file...can any body have a quick look on it...

by the way for once again are there any other slideshow based on php+flash +mysql(not that mani)...
thanks

Yep, .htaccess. If you run apache locally too, it's the same. The full code to add would be:

Code:

RewriteEngine on
RewriteRule ^images.xml$ images.php

Your code seems ok more or less. Did you test it? Except maybe in the xml that you output itself -- you don't need double quotes around the links between <image> and <link> tags.

really thanks..
any way well i am using easy php 1-8 locally...and i cannot see any .htacess file in the root..i need htacess file in the folder the swf ..php ..xml resides or the root...
or i need to have htacess file in the root folder..may be apache..do i need to create myself...

well really thanks..sorry for asking but as i am new to mod rewrite..

by the way is it good idea to follow this kind of tech using xml in this way..
thanks...

after searching whole day and reading forums..i found this ...http://www.kirupa.com/forum/attachme...6&d=1163709142
this seems quite similar what i was looking for i have not tested it yet..
but it has used xml inside php and used php file...xml file not required..

any way i am testing
really thanks php_daemon for allsupport
keep good thought and help coming

after searching whole day and reading forums..i found this ...http://www.kirupa.com/forum/attachme...6&d=1163709142
this seems quite similar what i was looking for i have not tested it yet..
but it has used xml inside php and used php file...xml file not required..

any way i am testing
really thanks php_daemon for allsupport
keep good thought and help coming

Your problem is feeding the xml document to your flash app. There's no difference as far as the extension to an xml document itself, but since you can't modify your flash app, you have to feed it as images.xml. That's how I see your situation anyway.

Your problem is feeding the xml document to your flash app. There's no difference as far as the extension to an xml document itself, but since you can't modify your flash app, you have to feed it as images.xml. That's how I see your situation anyway.

sorry i feel like i have been like a dumb ..do you mean to say that changing file name from images.xml to xml.php will do the job..
i dont know actionscript and felt that it must have xml...
i do have fla here it is

do you mean to say that changing this line
xmlData.load("images.xml");
to xmlData.load("images.php");
will do the job..

I thought you didn't have the source. In that case, definitely, all you need to do is to change the extension.

And for the reference, you can not only change the extension, but add params to it too. For example, your script can return a specified amount of images -- xmlData.load("images.php?count=10") would work perfectly fine.

I thought you didn't have the source. In that case, definitely, all you need to do is to change the extension.

And for the reference, you can not only change the extension, but add params to it too. For example, your script can return a specified amount of images -- xmlData.load("images.php?count=10") would work perfectly fine.

really sorry to be dumb actually oversmart and thinking how could that problem..
actually it did work...
just i used images.xml in place of images.xml
all started working ..fine..
some time it happen..
sorry for taking time
some time little knowledge is really dangerous...
really thanks...php_daemon..
really thanks....
any way it is getting glitterly bcoz of mysql query i will have a look
thanks

after all xml is very powerful cross platform..language..i should have rememberred old college lectures
thanks