Re: flash/php problem

From: Date: Thu, 09 Mar 2006 15:07:32 +0000
Subject: Re: flash/php problem
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-41423@lists.php.net to get a copy of this message
Actually, I don't see why either method would work: 1) Call php, which updates, then calls swf. or 2) Call swf, which calls php to make update. No difference, both ways the job gets done.. What's the AMFPHP deal? I'll have to take a look at that.. -Micah On Wednesday 08 March 2006 11:23 pm, Anthony Lee wrote: > > query("update hitcounter set plays = plays+1 where file = > > {$_GET['file']}"); header("Location: > > play.swf?file={$_GET['file']}"); > > Sorry I didn't read this thread thoroughly enough. This looks like a good > solution to me. > > You just need to have the swf make the request and return the mp3 to > the swf not > a reference to another swf. > > query("update hitcounter set plays = plays+1 where file = > {$_GET['file']}"); if (!error) header("Location: > {$_GET['file']}.mp3"); > > Tony

« previous php.db (#41423) next »