Jump to content

echo?


TheLostGuru

Recommended Posts

I'm not really sure how to describe my problem.  I am trying to retrieve a variable from PHP and send it to Flash.  The trick however is the place where I am retrieving the variable from has a special API so that if I type <(FirstName)> (outside of the php tags) it will return the users name.  But if I use it outside of the php tags I can't store it in a variable.  The closest I have come is this:

 

echo '$name = <(FirstName)>';

 

However all this does is sends the variable name to flash with the value of "<(FirstName)>".  Any help is greatly appreciated!

Link to comment
Share on other sites

I suspect the problem is processing order.. that is:

 

1.  PHP executes

2.  <(FirstName)> is replaced, AFTER php has finished

3.  Page is displayed to user

 

But really we need to know more about the API to help.  How do you enable the api for your php script, or for your website?

Link to comment
Share on other sites

Ok, here's the big picture.  I am creating a simple widgit in flash.  All of the PHP files and database files are hosted on my server.  The widgit is loaded at SMS.ac and people can buy it and put it on their page.  Now this is the part I don't know the reasons, but only the facts.  Using the GET command there are several variables that I can pick up from SMS.ac.  I can also use these built in things (I guess from the API) such as <(FirstName)> <(country)> etc... and it will supply with that user's information. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.