Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3601670
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:39:02+00:00 2026-05-18T20:39:02+00:00

Hello Given situation : In webpage.php the flashscript is calling a flash script with

  • 0

Hello Given situation: In webpage.php the flashscript is calling a flash script with a flashvar: the playlist file which is a PHP generated XML file: playlist.php, it does that well so long as there are no extra functions in there. Now, in that XML-format playlistfile there needs to be a special function, besides the usual echo("");, namely the very special echo __(""); function that is already declared in webpage.php which needs to do something with the paragraphs residing within that xml file.

However, currently the retrieved file misses the function echo __();and says “no such function declared in that xml-format [playlist.php] file”. The php functions that are currently included at the very top of webpage.php somehow do not pass-through-the necessary functions into the playlist file for it to recognise how to handle it, in order for that playlist to get those necessary functions working.

Apparently these are not passed through automatically/properly when residing in the flashvars?? Cause the echo __(""); works fine when called within webpage.php or via a normal php include(""); if those functions are in a different php file. But not working from the playlist.php file.

Any ideas why/what is going on here?
I appreciate your clues for this prob +1. Thanks very much.


WEBPAGE.PHP the webpage, has at the top an include with functions:

<?php include (functions.php); ?> 
//  function that know what to do with echo __("paragraph")

<script language="JavaScript" type="text/javascript">
    run(
      'play', 'true',
      'loop', 'true',
      'flashvars', 'xmlFile=/incl/playlist.php',    // <<<< !!
      'wmode', 'transparent',
      'allowScriptAccess','sameDomain',
    );
</script>

<noscript>
   <object classid="blabla">
   <param name="allowScriptAccess" value="sameDomain" />
   <param name="movie" value="/movies/movie.swf" />
   <param name="flashvars" value="xmlFile=/incl/playlist.php" />  // <<< !!
   <embed src="/movies/movies.swf" type="application/x-shockwave-flash"/>
   </object>
</noscript>

PLAYLIST.PHP The PHP generated XML file which is retrieved into the webpage as flash variable (see above)

<?php
echo ('<?xml version="1.0" encoding="UTF-8"?>');
echo ('<songs>');
    echo ('<song version="1. "') . __("boom blue blow bell bowl") . ('/>');
    echo ('<song version="2. "') . __("ball bail beam bike base") . ('/>');
echo ('</songs>');
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:39:03+00:00Added an answer on May 18, 2026 at 8:39 pm

    As I understand it, you pass the path to playlist.php to the Flash Player, which then connects to the server to call the actual php page. If that is true, you must include the __() function into the playlist.php as well, or otherwise it can’t be called.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello Given situation : In webpage.php the flashscript is calling a flash script with
Given hello.php: <?php echo Hello; ?> rendering the page works fine and returns Hello
If given the route: {FeedName}/{ItemPermalink} ex: /Blog/Hello-World If the item doesn't exist, I want
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
I am writning a Hello World SWT application in Eclipse (I follow instructions given
Technology Used:- Asp.Net 2.0 Code:- See Below Description:- hello code given below is working
I've been given a for fun challenge to write a hello world application. The
given the simple code: <textarea>hello</textarea> shouldn't a text area with the word hello be
Given the following which can be loaded into MS SAPI 5.1: <GRAMMAR LANGID=409> <RULE
I am trying to compile a hello world module given over here I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.