Koobazaur Posted December 29, 2007 Share Posted December 29, 2007 Greetings. On my website I use PHP to generate pages from a single index.php. This means that the directory base directory is wherever the index file is. The problem arises when I embed flash files from different directories - some of theme need to use a streaming audio file that is placed in the same directory as the flash file. Problem is, since I am embeding them from index, the flash looks for the streaming audio from the base directory, not the directory where it is placed. Is there any way I can somehow change my executing directory or where the flash looks for the files? Otherwise I'll have to flood my public_html with all sorts of audio files... Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/83586-changing-executing-directory-of-a-requested-page/ Share on other sites More sharing options...
crashmaster Posted December 29, 2007 Share Posted December 29, 2007 post your index.php Quote Link to comment https://forums.phpfreaks.com/topic/83586-changing-executing-directory-of-a-requested-page/#findComment-425262 Share on other sites More sharing options...
Koobazaur Posted January 1, 2008 Author Share Posted January 1, 2008 My index.php wouldn't really tell you much as all it does is include a file and call it's function. Hence, all my website is visible through that one index file in my public_html Essentailly, my problem is that I am embedding a flash file not in the current directoy (my src may be something like "somedir/flash/myfile.swf") and my flash file wants to stream an mp3 located in the current directory. However, this means having to put every mp3 for every flash that does that in my public_html, which I don't really want to do. Hence why I am wonder if there's any way to make the flash file think we are in the "somedir/flash/" instead of root dir. Quote Link to comment https://forums.phpfreaks.com/topic/83586-changing-executing-directory-of-a-requested-page/#findComment-427286 Share on other sites More sharing options...
Koobazaur Posted January 5, 2008 Author Share Posted January 5, 2008 Bumpalooie Quote Link to comment https://forums.phpfreaks.com/topic/83586-changing-executing-directory-of-a-requested-page/#findComment-430969 Share on other sites More sharing options...
Northern Flame Posted January 5, 2008 Share Posted January 5, 2008 you can use $_GET to get the directory name Quote Link to comment https://forums.phpfreaks.com/topic/83586-changing-executing-directory-of-a-requested-page/#findComment-430983 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.