Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Flash To PHP Forward To New Url


I'm trying to make a link from flash work.  It may sound weird because yeah GetURL..., but I have to follow the rule allowNetworking="internal" on the emmbed tag.  Inturn I can only use sendAndLoad from flash.  So what I want to do is have a link in flash call a php file using sendAndLoad.  I have that all working now here's the hard part. I need the php file to then take the url var I sent and go to that url.   

I have tried header(location...), meta refresh, javascripts and auto submit form none of these work from the flash peice, but all work when I go straight to the php file.   The problem occurs because all header info and html info have already been loaded.  Does anyone know of a different way to make the php file go to a new URL?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Passing Variable From Flash To Php & Back From Php To Flash
I am looking for some help in passing variable from flash to php & back from php to flash.

Forward
Is it possible to forward to some page ?

like forward('aPage.php');

Mail Forward
how do i forward emails from aliases.

say i have an email address. foo@yahoo.com then im registered on a
site. i have an alias email add there: foo@site.com then when people
send their emails to foo@site.com, it will be redirected to
foo@yahoo.com.

how do i do this? and whats the proper term for this feature?

Getting Rid Of Forward Slashes...
I have the following string:
$test = "12/12/2007"

What would be the most effective way of removing the forward slashes to come up with a "12122007" result?

How To Forward A Page Using PHP
i have a code like

if (...)
{
forward to xxx.php
}

now this is conditional so i cant use javascript and i also dont want to use that, how to do this in PHP, by forwading i mean opening a new page

Back And Forward With Sessions?
I am working on a website which is using sessions. What I want to do, is after the user is logged in, or logged out, when pushing the back or forward button not to change its current status(logged or not), if the destination page in history change this.

Possible To Forward If-expression In Variable?
I would like to forward an expression to an if-statement via a variable.
Like:
$a=10;
$b=20;

$expr="$a > $b";#this should be my if-expression

if ($expr) do something;#test should be if($a > $b)

Of course this does not work, as $expr is simply determined as being true.
Is there any chance to get this working?

Forward POST-variables
I have a form which should be submitted with either of two actions. Tried with javascript but this seems unreliable. Now looking at php and a processor page as the action of the form (process.php) which then sends the user to the different actionpages...can't figure out how to forward the post-variables to the different pages. Code:

Forward A URL And Change A Component
I've just had to move a MediaWiki installation from one area of my site to a subdomain on another area. I need a way to forward URLs, so that whenever anyone requests a URL for the wiki at the old location, they are automatically forwarded to the URL on the new location. The system would need to add a subdomain, but also change the article pointer. For example: Code:

Determine A Forward Email Addy
i have an application that sends out mail from flash. in each mail there is a link for the viewer to click on. when the viewer clicks the link blah.php?email=email@address.com it updates the database adding their email to the list of people who have clicked that link.

i want to be able to track emails that have been forwarded. the problem is if someone forwards, it will forward with their email attached to the link instead of the recipients.

is there any way i can grab the recipients email and put it in the link?

How To Make Pages That Auto-forward?
I made a form that someone can fill out ... then when he's done(provided everything was filled in properly) I want him to automatically to be taken back to the main page. (preferably after a 5 second delay or so) I was just curious if this is possible in php. I've seen it done in javascript, but I dont know javascript very well.

Forward Email, Change Sender Address
Is there anyway I can set up a personal 'remailer' type of thing
on my domain ?

I can not email a friend at his workplace because his company
have put a 'block' on emails from my work address (the companies
we work for are considered rivals) - I am after a way to
'bounce' or forward an email, so my originating address isn't
shown.

I have tried email forwarding (in CPanel) using addresses set up
in my domain but when they forward, the original sender is
shown, therefore the block applies.

I have also tried using Bigfoot but again, the original sender
is shown.

Is there any way, using PHP or otherwise, that I could somehow
receive a message sent to an address in my domain, and forward
it on with a different "from" address ? (There would only be 1
specified address that I would want to forward on, to prevent
abuse!)

i.e.

from xxxx@company1.com => xxxx@mydomain.com, this then forwards
the original mail but from xxxx@mydomain.com =>
xxxx@company2.com

Unfortunately webmail isn't an option as we don't have web
access at work, and it has to be sent through the work Email
system, Outlook.

Fieldforwarder PHP Script Doesn't Forward Fields The Second Timearound
I'm new to this newsgroup and have tried to search through the archives
first, before posting this question. I don't think it has been addressed
before. Also, this question is about a script I found on zend.com, and I
have also emailed the author of the script, unfortunately without any
replies sofar.

Here goes:

I am working on a website for pizza delivery. Through this website people
need to be able to order a pizza or pasta online.

The ordering proces will be a form with multiple pages. The visitor will be
guided through the menu in 5 steps. Step 1 being the pizzas, step 2 the
pastas, and so on.
On each page there is always the possibility to add an "side-order" to their
order. So, on the right is always the same list of side-orders.

I am using a script called fieldforwarder.php (see this page for the script:
http://www.zend.com/zend/spotlight/...e7.php#Heading9)

It works perfectly, however one challenge still remains and it has to do
with the side-order. I think it has something to do with the
fieldforwarder.php file.

The side-orders can be choosen during any step. So, if one chooses a side
order in step 1, it needs to remain chosen in the following steps. I have
this working, by using if statements. One pulldown menu in the side-order
menu looks like this:

<select name="italianchefsalad_junior" class="orderpulldown"
id="italianchefsalad_junior">
<option value="0"<?php if ($italianchefsalad_junior==0) echo "selected";
?>>0</option>
<option value="1"<?php if ($italianchefsalad_junior==1) echo "selected";
?>>1</option>
<option value="2"<?php if ($italianchefsalad_junior==2) echo "selected";
?>>2</option>
</select>

Although starting from step 2 the code looks this actually.
Well, it does work in a way that it shows me when i clicked something in the
side orders on the first page. However, when i try to choose something in
step 2 (or 3 or 4 or 5) it won't "remember" it.
I guess that the fieldforwarder.php file doesn't check for changes in
fields, it already has indexed? I'm not quite sure, because the code of the
file is a little bit too advanced for me.

Hopefully someone on here can help me out. I really hope so.

Pass Info Forward From A Redirect Page
I have a main page with 75% constant contents. I want to change the other 25% depending on what page calls the main page. Example:

www.mysie.com/a.html
www.mysite.com/b.html
www.mysite.com/c.html
www.mysite/x/y/z/mainpage.php

Pages a, b, and c are redirect pages to mainpage.php How can I how can I open storya.txt in the mainpage.php when someone clicks on ~.com/a or storyb.txt if they click on ~ .com/b ?

Forward To Page Alongwith Variables In POST
How to forward a page to another page alongwith the parameters passed into it

I mean I have page a.php
which is called with some parameters in $_POST and I require to pass these to another page with same variables in $_POST

Setting Up A Forward Apache Https Proxy
I can't figure out how to setup a forward https proxy in apache. Here is what I have tried:


Code:
<VirtualHost *:443>
ServerName server.com
DocumentRoot /path
ProxyRequests On
ProxyVia Off
AllowCONNECT 80 443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
#<Proxy *>
#AuthUserFile .htpasswd
#AuthType Basic
#AuthName "private"
#<LIMIT GET POST CONNECT>
#require valid-user
#</LIMIT>
#</Proxy>
</VirtualHost>


I've tried it with and without the commented section, and tried various other combinations of commenting and uncommenting various parts of this. The only way I have gotten it to work is to comment out SSLEngine on, which defeats the purpose of what I'm trying to do. I've also tried to use several different combinations of the SSLProxy* functions, but have had no luck with that either.

Could anyone point me in the right direction? The apache documentation hasn't been too helpful for me and I can't even tell if what I am trying to do is supported or possible.

Need To Make A PHP Script Forward To An Html Page When Processed!
When a php script is processed, how can I then get the script to automatically forward to a confirmation page? The script in question is a mail script, and I need to get this to forward to an html page to basically say, 'mail is sent'.

Preventing Back/forward Button Form Resubmission
I have a site that is form intensive and would like to prevent users on my site from resubmitting forms when they press back or forward, which they will likely do at some point no matter how I program it. 

So, I am interested from hearing from people who 1) had the same need and 2) implemented something in PHP with which they were satisfied.  How did you go about doing this?

Php And Flash
How to send a simple variable like a result from a query to Flash?

Php And Flash
I'm just getting my feet wet with PHP. I'm trying to load variables from cookies that are connected to a MySql database. I have a php login script already and am trying to create a flash interface for it. I can't seem to get the variables to load into flash from the cookie that is in the top of the html page. If anyone knows the process I would be totally in your debt.

Flash, PHP & XML
Is anyone out there doing anything in terms of parsing in XML into Flash using PHP as a go between so to speak? I have done some stuff parsing XML directly into Flash but I ntoiced a huge speed hit.

Anyways, I was wondering if anyone has done anything or has seen a way to parse XML into Flash via PHP.

Flash And PHP
Can Flash tack over a variable (string, array, a object, ...) from a PHP - Script? When yes, such as.

Php And Flash
Is there any good resources (tutorials) out there that topic php scripting into a flash presentation with actionscripting? Any advice would be apreciated as I only found one site so far and it didn't take up to much about the subject.

Php/flash
I have a text field (multiline) in Flash. When I click "submit" it hits a PHP script. The PHP file sends the message in the text field to an email address. My problem is that when i receive the email, the message is joined together, not recognizing the line breaks that were made on the Flash end. Does the variable of the text field need to be manipulated before it gets posted to the php file?

Re:FLASH MX
I presume PHP sience you are in
the php forum?

PHP Flash
I am connecting PHP & Flash..

$var = $this->_nm->getVar(); <-- Get data from database
$var1 = gettype($var);
if (is_string($var1))
{
echo "s=".$var1;
}

If i print in the browser, it will return s=string, however if i
LoadVars in flash it will return s=NULL

Flash And PHP 4.3.1
I've been developing a project in Flash 5 that utilises both PHP and MySQL. The development and testing was done on a PHP server running version 4.1.2 (pretty old I know) and everything was working perfectly. However, upon upgrading to the latest version of PHP 4.3.1, it appears that my Flash application no longer communicates with the PHP files.

Is there some new security measures that were introduced in PHP 4.3.1 that could be clashing with how the Flash file operates? Has anyone else experienced similar problems?

FLASH MX
I NEED HELP WITH FLASH, THIS IS THE SITE THAT I AM WORKING ON

Php, Xml And Flash
i have a video with captioning. video is a flash file and captioning is in XML file
they are working really fine. now what the problem is:: I am getting the path of xml file through php as well as video(flv) file path through php.

the video works well but the xml file path which i got through php( from database) is not working. the captioning part (xml file) is not working now only the video is displayed... could anyone please help me to get out this situation..is the problem with php and xml or php,xml and flash.

Flash And PHP
Just wondering if it was possible to use a whole flash site, but have php inserts for like news and roster and such.

Flash And PHP
I'm looking to create a very small .swf which displays how many posts/topics/members there are in my forum - but Im looking for it to update in real time.  So as posts are made on the forum, if someone is viewing the homepage they see the number update 'live'

I'm wondering if anyone can tell if this is hard to do?  I'm fine with PHP and am just starting to learn flash, but so far only have done minor animation.

Would it work by embedding a PHP script in the flash to run a query on the db to count the posts, then echo it in the flash.  But how would I get it to update live?

PHP And Flash 8
This is a very weird problem having to do with security settings.

I'm trying to access a php file, stored on a server on my computer, from a .swf file embedded in a webpage, but when it only works when you open the .swf file with flash 8. When you use the .swf file in a browser it comes up with this security thing and it wants you to change the security settings here:
http://www.macromedia.com/support/d...manager04a.html

Then I change it to always allow then I add 'local' and 'localhost' but nothing happens This database accessing work 100% when using the program flash 8. Code:

PHP With Flash
I know this is not a flash forum, but I have tried about 3 flash forum and no one either seems to know the answer or they will not help me one; so I thought I would give my regular visited PHP forum a swing at this one.

I am trying to load images in Flash through PHP; but have no idea about action scripting. Has anyone every tried to do this; if so please advise me on how you accomplished this.

Flash
I dont really have a problem just enquiring, i have heard it is possible to do PHP in Macromedia Flash i was just wondering if anyone else knows about this because i have a college project and it needs to have PHP accessing databases, searching adding removing etc, and i really enjoy using Flash and i was wondering if it is possible

First PHP + Flash Project
Basically its going to be a chart of say 20 items that are ranked according to vote by registered users. So heres a few initial pointers i need help with to get the ball rolling:

1. The Flash page is loaded how do I initiate php script to search a mysql db to read a list of items containing the fields (id,name,votes,date_entered)

2. Would it be best to calculate ranking server side with script and then stream list to flash movie or calculate ranking via action-script.

3. When a user wishes to vote they enter their username and password in 2 text boxes (stored in another db) and then clicks on item to vote for..how would this data be sent to a script that would update the db accordingly.

4. After the database has been updated the flash movie needs to be then updated, am i better again doing this via another post to movie or with action-script?

These are initial thoughts and i'm sure there will be many more queries as I hopefully progress. I think alot of people will benefit from this project as there are not alot (or enough) tutorials on Flash interaction with db's via PHP.

Flash Sniffer
can anyone tell me how to sniff for a plug in, namely flash? i'd prefer a php3 solution.

How To Display Pdf Into Flash?
My colegue is trying to make a Multimedia presentation using flash.
But when anybody clicks on a pdf document, the acrobat reader
executable is executed from clients to open the pdf file.

What he wants is that rather than opening the document using
acroread.exe, the contents will be shown in a context area kept in the
navigator.

Can anybody suggest anything here. Is there any softsare to grab pdf
content and convert into flash?

Flash Detect
Can php load an image in place of a flash movie for users without the flash plugin?

PHP3 & Flash 4
Anyone know how to use PHP3 $variables in a flash4 movie?

Flash, PHP & LoadVariablesNum()
I am having problems getting variables/values INTO Flash from an
external source (PHP).
I'm NOT having problems getting loadVariablesNum() to _SEND_ variables
via POST, but I _AM_ having difficulty reading back into Flash local
variables.

Say, for instance, I have a Flash page that has a number of typein
fields. Each of the typeins has a variable associated with it.

In the action script section, I have something like this for a "Save"
button:

on(release) {
var result = "unset";
loadVariablesNum("foo.php", 0, "POST");

if (result == "ok")
{
getURL("bar.html");
}
}

Now, foo.php runs fine and is able to see all of the typein variables
in its HTTP_POST_VARS array and works properly and outputs:
result=ok

The locally scoped 'result' variable never gets changed.
If, however, I create a typein field and give it a variable called
'result' (and get rid of the local 'result' variable declaration in
the action section), the text typein field displays "ok" after
clicking on the "save" button.

What gives?
How does one declare/create variables in Flash that are locally (or
globally, I don't really care) scoped variables that are NOT UI
elements, but DO work for reading values back from an external source
(PHP, Python, txt file, ...)?

I've done some reading of the Flash documentation, and
loadVariablesNum() and loadVariables() sections are too terse and the
examples aren't very useful.

Furthermore, there seems to be an awful lot of WRONG information out
on the various websites and Q&A sites.

Html In Xml, Php & Flash
is there an official or a correct way for the following problem:

in my xml file, there is also html text. this xml file is used in flash and a php code.
the problem is, that - using simplexml in php - the html-tags are interpreted as xml-tags and it gets difficult to use the content. if i use &gt and &lt instead of < and or place the html-text in a CDATA, flash doesnt display the text as html and also returns errors. is it common at all, to place html into an xml-file?

a simple example of the xml-file:
----------------------------------
<?xml version=&#391;.0' encoding='utf-8'?
<website
<site title="Titel"
<text><p>lalala <b>tada</b<font color="#ff0000">dings
</font></pand a <a href="blabla.html" target="_blank"
link</a><img src="bild.jpg"/></text
</site
</website
----------------------------------

i already have some methods of resolution to solve the problem:
- modify the html tags in the php code, so simplexml does not recognize them as xml-tags
- replace/delete the &lt and &gt or cdata by string operator in flash
- code own php script to put the xml into a php array

the point is that i want to do it correctly, use a "clean" (and perhaps not pedestrian) way so i will not have any unconsidered problems afterwards. perhaps you could suggest how to do it best -

PHP- Variables --> Flash?
How can I send variables from PHP to flash? Sending variables from flash to PHP is not such a problem but the other way around is not working yet!

Php/flash Ascii
I have noticed that ASCII code value 34, the quote, show's up as little boxes in flash. Yet Ascii code value 147 shows up as a regular quote. Is the only way to ensure that the little boxes are not displayed is to do a regular expression match and convert all ascii code value 34 quotes to ascii code value 147 quotes?

Detecting Flash
I need a way to detect whether someone has flash installed. I will use this information to take them to two different pages depeding on the result.

Flash PHP Mysql And MP3
would like to create an appli to allow music makers to create an oline mp3/music gallery.
I was thinking of creating a flash player which takes the datas from a database. easy ... but would like users/members to create their own flash filed embeding mp3 music... how can I do that ? Do I need a special gallery (GD5 ?? ;-)

PHP And Flash MX Connectivity
Does anyone know how to connect PHP and Flash MX. I have tried the tutorials on the Web, but theya re not that good. All I know is LoadVars, but I don't know how to make it work. If you y'all would be so kind, please help me. Even just a simple working script with ONLY ONE php variable would be great. I just need to see how it is done even in the simplest manner, and I'll be able to pick it up from there. PHP Code:

Flash Snapshot ?
is it possible to get the first frame to JPEG etc if i upload a flash file
(swf)

Refreshing Flash....
I am trying to get started on a page which uses a short flash movie to
show status.

The flash movie itself is only a few seconds long - say 15 seconds.

What I want is something like this (alternative 1):

The browser sends a request for the page.

The php backend creates the first flash movie and sends it to the browser.

The browser plays the movie, and at the end, requests an update from the
server.

The server meantime has pre-generated the next flash and it is served up.

The server continues to pregenerate the flash movies until it doesn't
get a request for another one for some set period of time, say 60 seconds.

Alternative 2:

At the end of the flash movie, the browser loops the movie and at the
same time requests a new movie from the backend. When the movie is
generated it is served up to the browser, and the browser updates
automagically.

The goal:

I am playing a simple flash movie showing the status (position, etc) of
a machine. The only graphics tool I have available is flash, so I have
to make it fit. I need to update the status and the graphic every 15-30
seconds. (The interval is not critical.) What is important is that it
happens fairly transparently to the user.

Video -> Flash
There are some Mac tools to convert pretty much any given video source
to a Flash video file (.flv) but I'm wondering if there is any way to
do it using a Linux platform tying in to a PHP web system? I.e. I'd
like to have video files submitted by users which are then
auto-converted to .flv files.




Copyright © 2005-08 www.BigResource.com, All rights reserved