Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
Got it fixed. I had an error in my Flash Publish settings. Thanks, it was very helpful to see the steps y'all would take. On 3/29/06, Aaron Smith <[EMAIL PROTECTED]> wrote: > no it wouldnt be whitespace.. one thing you could check for is php > errors.. check the logs.. one quick way to check for php errors is to > navigate to the Highscores.php file in the web browser.. > I'll def check these out. Thanks. > go to http://www.5etdemi.com/blog/ this is patrick mineaults > blog. he is lead dev on amfphp. download the cinqetdemi.remoting > remoting library..(3rd post down or so).. they're really nice wrapper > classes used for remoting. makes it really simple.. theres an > example of how to use it there.. basically there wrapper classes for > the flash remoting classes.. > > smith > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
works i would still check out that cineqdemi.remoting library i posted.. (just a second ago) smith On Mar 29, 2006, at 4:05 PM, Count Schemula wrote: Fixed. I could scream. The publish settings were publishing to a different folder. So, I was blinded by jumping between servers and the 3 hour time difference between me and where my sever is. So, does, http://www.thelargeglass.com/highscores2/index.html work for y'all? I'm excited, I'm a hacker at best (obviously) but have been chasing this remoting thing for a long time. Finally! It works! Seriously, I've blown a lot of time trying to learn remoting and this is my very first success. Thanks everyone, sorry for the stupid errror on my part. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
sweet, got the monkeyman 666 from somebody. Awesome. I'm soo happy about this. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
Yes, you're right.. It does. My bad. Your stuff works for me now. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Count Schemula Sent: Wednesday, March 29, 2006 4:07 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded... I think the /browser folder doers this? example: http://www.thelargeglass.com/amfphp/browser/ Let's you test the basic service? On 3/29/06, Ettwein, Josh <[EMAIL PROTECTED]> wrote: > Can you create a simple page that creates a new instance of your class > and spits what would be sent to flash via amf to the screen instead to > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
no it wouldnt be whitespace.. one thing you could check for is php errors.. check the logs.. one quick way to check for php errors is to navigate to the Highscores.php file in the web browser.. go to http://www.5etdemi.com/blog/ this is patrick mineaults blog. he is lead dev on amfphp. download the cinqetdemi.remoting remoting library..(3rd post down or so).. they're really nice wrapper classes used for remoting. makes it really simple.. theres an example of how to use it there.. basically there wrapper classes for the flash remoting classes.. smith On Mar 29, 2006, at 4:03 PM, Ettwein, Josh wrote: Can you create a simple page that creates a new instance of your class and spits what would be sent to flash via amf to the screen instead to see if the class file is not barfing silently on the remote server? Could it be handling of whitespace in the class file - although I think this was fixed in v1.0? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Count Schemula Sent: Wednesday, March 29, 2006 3:56 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded... Actually, the db server is a wholly separate server? But the same .swf gets the remote db data when I do Test Movie. amfphp is on the remote server, and seems to test positive. http://www.thelargeglass.com/amfphp/gateway.php ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
I think the /browser folder doers this? example: http://www.thelargeglass.com/amfphp/browser/ Let's you test the basic service? On 3/29/06, Ettwein, Josh <[EMAIL PROTECTED]> wrote: > Can you create a simple page that creates a new instance of your class > and spits what would be sent to flash via amf to the screen instead to > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
Fixed. I could scream. The publish settings were publishing to a different folder. So, I was blinded by jumping between servers and the 3 hour time difference between me and where my sever is. So, does, http://www.thelargeglass.com/highscores2/index.html work for y'all? I'm excited, I'm a hacker at best (obviously) but have been chasing this remoting thing for a long time. Finally! It works! Seriously, I've blown a lot of time trying to learn remoting and this is my very first success. Thanks everyone, sorry for the stupid errror on my part. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
Can you create a simple page that creates a new instance of your class and spits what would be sent to flash via amf to the screen instead to see if the class file is not barfing silently on the remote server? Could it be handling of whitespace in the class file - although I think this was fixed in v1.0? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Count Schemula Sent: Wednesday, March 29, 2006 3:56 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded... Actually, the db server is a wholly separate server? But the same .swf gets the remote db data when I do Test Movie. amfphp is on the remote server, and seems to test positive. http://www.thelargeglass.com/amfphp/gateway.php ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
Actually, the db server is a wholly separate server? But the same .swf gets the remote db data when I do Test Movie. amfphp is on the remote server, and seems to test positive. http://www.thelargeglass.com/amfphp/gateway.php On 3/29/06, Aaron Smith <[EMAIL PROTECTED]> wrote: > you should only need that if you are connecting to one domain from > another.. in Counts case everything is on the same domain I believe > so that won't matter... > > > On Mar 29, 2006, at 3:43 PM, Grant Cox wrote: > > > Make sure you have a crossdomain.xml file in the root of your > > server, otherwise the security model in Flash will refuse > > connections to that server. > > > > The simplest version (allow all connections from any flash files) > > would be: > > > > > > > SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> > > > > > > > > > > > > Regards, > > Grant Cox ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
I just added a crossdomain.xml to the web root. No change. The very same .swf file can pull this data when I do Test Movie. The server is an online remote host, not my local computer and not the webserver that hosts the flash file, ie, it's on a different domain, no matter whether I access it Test Movie or web hosted style. I know it's something super simple, the file does seem to work in 2 other situations (local web server and Test Movie). On 3/29/06, Grant Cox <[EMAIL PROTECTED]> wrote: > Make sure you have a crossdomain.xml file in the root of your server, > otherwise the security model in Flash will refuse connections to that > server. > > The simplest version (allow all connections from any flash files) would be: > > >SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> > > > > > > Regards, > Grant Cox > > > Count Schemula wrote: > > >http://www.flash-creations.com/notes/servercomm_remoting_amfphp.php > > > >I have the above file working well on a local test server. Flash 8, > >amfphp, mySQL. > > > >Then I try to make this file work on my hosted sever: > > > >http://www.thelargeglass.com/highscores2/index.html > > > >The file works when I do a Test Movie and play it locally. According > >to NetConnectionDebugger I'm connecting to my remote/online host and > >it's getting the data from tha db. I can even add and delete records. > > > >When I upload this file, it does not work. > > > >On my computer, it says "Waiting for localhost" down in the bottom web > >browser status window. ??? It should not be looking for any localhost? > > > >So, in conclusion, files works EVERYWHERE, except where I need to > >work. Any ideas? > > > >=== > > > >I think I'm gonna like amfphp remoting a lot... I never got remoting > >to work with CFMX. > >___ > >Flashcoders@chattyfig.figleaf.com > >To change your subscription options or search the archive: > >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > >Brought to you by Fig Leaf Software > >Premier Authorized Adobe Consulting and Training > >http://www.figleaf.com > >http://training.figleaf.com > > > > > > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
you should only need that if you are connecting to one domain from another.. in Counts case everything is on the same domain I believe so that won't matter... On Mar 29, 2006, at 3:43 PM, Grant Cox wrote: Make sure you have a crossdomain.xml file in the root of your server, otherwise the security model in Flash will refuse connections to that server. The simplest version (allow all connections from any flash files) would be: http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> Regards, Grant Cox Count Schemula wrote: http://www.flash-creations.com/notes/servercomm_remoting_amfphp.php I have the above file working well on a local test server. Flash 8, amfphp, mySQL. Then I try to make this file work on my hosted sever: http://www.thelargeglass.com/highscores2/index.html The file works when I do a Test Movie and play it locally. According to NetConnectionDebugger I'm connecting to my remote/online host and it's getting the data from tha db. I can even add and delete records. When I upload this file, it does not work. On my computer, it says "Waiting for localhost" down in the bottom web browser status window. ??? It should not be looking for any localhost? So, in conclusion, files works EVERYWHERE, except where I need to work. Any ideas? === I think I'm gonna like amfphp remoting a lot... I never got remoting to work with CFMX. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
Make sure you have a crossdomain.xml file in the root of your server, otherwise the security model in Flash will refuse connections to that server. The simplest version (allow all connections from any flash files) would be: http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> Regards, Grant Cox Count Schemula wrote: http://www.flash-creations.com/notes/servercomm_remoting_amfphp.php I have the above file working well on a local test server. Flash 8, amfphp, mySQL. Then I try to make this file work on my hosted sever: http://www.thelargeglass.com/highscores2/index.html The file works when I do a Test Movie and play it locally. According to NetConnectionDebugger I'm connecting to my remote/online host and it's getting the data from tha db. I can even add and delete records. When I upload this file, it does not work. On my computer, it says "Waiting for localhost" down in the bottom web browser status window. ??? It should not be looking for any localhost? So, in conclusion, files works EVERYWHERE, except where I need to work. Any ideas? === I think I'm gonna like amfphp remoting a lot... I never got remoting to work with CFMX. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
Nope. Everything is nice and clean. It's a near virgin install. Do you get the localhost call in the status bar as well? It's super simple, it just seems like something about moving the file online wrecks it. The very same .swf file pulls up the data if I play it from my computer Test Movie style. On 3/29/06, Aaron Smith <[EMAIL PROTECTED]> wrote: > is your endpoint set correctly? : > > var _service:Service = new Service(gatewayUrl, null, 'Highscores', > null , null); > > if Highscores.php is in a highscores or gamesfolder of some sort in > the services folder in amfphp. you need to reference it like: > var _service:Service = new Service(gatewayUrl, null, > 'games.Highscores', null , null); > > try that.. > > smith > > > > On Mar 29, 2006, at 3:17 PM, Count Schemula wrote: > > > I have an amfphp install on both? > > > > > > > > When I play it locally, seems like it connects remotely ok: > > > > ConnectString: "http://www.thelargeglass.com/amfphp/gateway.php"; > > DebugId: "0" > > EventType: "Connect" > > MovieUrl: "file:///C|/Documents and Settings/Dual Core/My > > Documents/thelargeglass/webDev/dualcore/highscores/highscores.swf" > > Protocol: "http" > > Source: "Client" > > Time: 1143673926056 > > Date (object #1) > > ."Wed Mar 29 18:12:06 GMT-0500 2006" > > > > ConnectString: "http://www.thelargeglass.com/amfphp/gateway.php? > > PHPSESSID=5ea2dbbd18e96edc6bb434e0b296f64f" > > DebugId: "0" > > EventType: "Connect" > > MovieUrl: "file:///C|/Documents and Settings/Dual Core/My > > Documents/thelargeglass/webDev/dualcore/highscores/highscores.swf" > > Protocol: "http" > > Source: "Client" > > Time: 1143673926868 > > Date (object #1) > > ."Wed Mar 29 18:12:06 GMT-0500 2006" > > > > > > > > This tests positive: > > > > http://www.thelargeglass.com/amfphp/gateway.php > > > > > > > > In my flash file: > > > > var gatewayUrl:String = "http://www.thelargeglass.com/amfphp/ > > gateway.php"; > > NetDebug.initialize(); > > var _service:Service = new Service(gatewayUrl, null, 'Highscores', > > null , null); > > > > > > > > The amfphp service for Highscores: > > > > For the *** values, I have the correct online db server information > > > > > class Highscores { > > > >var $dbhost = ''; // your information here > >var $dbname = ''; > >var $dbuser = ''; > >var $dbpass = ''; > > > >function Highscores() { > >$this->methodTable = array( > > "getScores" => array( > > "description" => "Returns rs of all scores from > > highscores table", > > "access" => "remote", > > "returntype" => "recordSet" > > ), > > "insertScore" => array( > > "description" => "Insert score into highscores table, > > return id", > > "access" => "remote" > > ), > > "deleteScore" => array( > > "description" => "Deletes score for specified id from > > highscores", > > "access" => "remote" > > ) > > ); > > // Initialize db connection > > $this->conn = mysql_pconnect($this->dbhost, $this->dbuser, > > $this->dbpass); > > mysql_select_db ($this->dbname); > >} > > > >function getScores() { > > return mysql_query("SELECT * FROM highscores"); > >} > > > >function insertScore($scoreData) { > > mysql_query("INSERT INTO highscores VALUES > > (NULL,'".addslashes($scoreData['nickname'])."','".$scoreData > > ['dateposted']."','".$scoreData['score']."')"); > > return mysql_insert_id(); > >} > > > >function deleteScore($id) { > > return mysql_query("DELETE FROM highscores WHERE id=".$id); > >} > > } > > ?> > > > > > > > > I've switched folders, browsers etc try to see if it's a cache > > problem. > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
is your endpoint set correctly? : var _service:Service = new Service(gatewayUrl, null, 'Highscores', null , null); if Highscores.php is in a highscores or gamesfolder of some sort in the services folder in amfphp. you need to reference it like: var _service:Service = new Service(gatewayUrl, null, 'games.Highscores', null , null); try that.. smith On Mar 29, 2006, at 3:17 PM, Count Schemula wrote: I have an amfphp install on both? When I play it locally, seems like it connects remotely ok: ConnectString: "http://www.thelargeglass.com/amfphp/gateway.php"; DebugId: "0" EventType: "Connect" MovieUrl: "file:///C|/Documents and Settings/Dual Core/My Documents/thelargeglass/webDev/dualcore/highscores/highscores.swf" Protocol: "http" Source: "Client" Time: 1143673926056 Date (object #1) ."Wed Mar 29 18:12:06 GMT-0500 2006" ConnectString: "http://www.thelargeglass.com/amfphp/gateway.php? PHPSESSID=5ea2dbbd18e96edc6bb434e0b296f64f" DebugId: "0" EventType: "Connect" MovieUrl: "file:///C|/Documents and Settings/Dual Core/My Documents/thelargeglass/webDev/dualcore/highscores/highscores.swf" Protocol: "http" Source: "Client" Time: 1143673926868 Date (object #1) ."Wed Mar 29 18:12:06 GMT-0500 2006" This tests positive: http://www.thelargeglass.com/amfphp/gateway.php In my flash file: var gatewayUrl:String = "http://www.thelargeglass.com/amfphp/ gateway.php"; NetDebug.initialize(); var _service:Service = new Service(gatewayUrl, null, 'Highscores', null , null); The amfphp service for Highscores: For the *** values, I have the correct online db server information methodTable = array( "getScores" => array( "description" => "Returns rs of all scores from highscores table", "access" => "remote", "returntype" => "recordSet" ), "insertScore" => array( "description" => "Insert score into highscores table, return id", "access" => "remote" ), "deleteScore" => array( "description" => "Deletes score for specified id from highscores", "access" => "remote" ) ); // Initialize db connection $this->conn = mysql_pconnect($this->dbhost, $this->dbuser, $this->dbpass); mysql_select_db ($this->dbname); } function getScores() { return mysql_query("SELECT * FROM highscores"); } function insertScore($scoreData) { mysql_query("INSERT INTO highscores VALUES (NULL,'".addslashes($scoreData['nickname'])."','".$scoreData ['dateposted']."','".$scoreData['score']."')"); return mysql_insert_id(); } function deleteScore($id) { return mysql_query("DELETE FROM highscores WHERE id=".$id); } } ?> I've switched folders, browsers etc try to see if it's a cache problem. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
I have an amfphp install on both? When I play it locally, seems like it connects remotely ok: ConnectString: "http://www.thelargeglass.com/amfphp/gateway.php"; DebugId: "0" EventType: "Connect" MovieUrl: "file:///C|/Documents and Settings/Dual Core/My Documents/thelargeglass/webDev/dualcore/highscores/highscores.swf" Protocol: "http" Source: "Client" Time: 1143673926056 Date (object #1) ."Wed Mar 29 18:12:06 GMT-0500 2006" ConnectString: "http://www.thelargeglass.com/amfphp/gateway.php?PHPSESSID=5ea2dbbd18e96edc6bb434e0b296f64f"; DebugId: "0" EventType: "Connect" MovieUrl: "file:///C|/Documents and Settings/Dual Core/My Documents/thelargeglass/webDev/dualcore/highscores/highscores.swf" Protocol: "http" Source: "Client" Time: 1143673926868 Date (object #1) ."Wed Mar 29 18:12:06 GMT-0500 2006" This tests positive: http://www.thelargeglass.com/amfphp/gateway.php In my flash file: var gatewayUrl:String = "http://www.thelargeglass.com/amfphp/gateway.php";; NetDebug.initialize(); var _service:Service = new Service(gatewayUrl, null, 'Highscores', null , null); The amfphp service for Highscores: For the *** values, I have the correct online db server information methodTable = array( "getScores" => array( "description" => "Returns rs of all scores from highscores table", "access" => "remote", "returntype" => "recordSet" ), "insertScore" => array( "description" => "Insert score into highscores table, return id", "access" => "remote" ), "deleteScore" => array( "description" => "Deletes score for specified id from highscores", "access" => "remote" ) ); // Initialize db connection $this->conn = mysql_pconnect($this->dbhost, $this->dbuser, $this->dbpass); mysql_select_db ($this->dbname); } function getScores() { return mysql_query("SELECT * FROM highscores"); } function insertScore($scoreData) { mysql_query("INSERT INTO highscores VALUES (NULL,'".addslashes($scoreData['nickname'])."','".$scoreData['dateposted']."','".$scoreData['score']."')"); return mysql_insert_id(); } function deleteScore($id) { return mysql_query("DELETE FROM highscores WHERE id=".$id); } } ?> I've switched folders, browsers etc try to see if it's a cache problem. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] lil' help with amfphp... works locally, not uploaded...
sounds like your trying to connect to your localhost amfphp gateway from the web version.. change your gateway to point to the gateway on your site. (IE, you should have one amfphp install on local( thats the one thats working ) then one in www.thelargeglass.com/ flashremoting/ you want to connect to the one online.. hope that helps smith On Mar 29, 2006, at 3:02 PM, Count Schemula wrote: http://www.flash-creations.com/notes/servercomm_remoting_amfphp.php I have the above file working well on a local test server. Flash 8, amfphp, mySQL. Then I try to make this file work on my hosted sever: http://www.thelargeglass.com/highscores2/index.html The file works when I do a Test Movie and play it locally. According to NetConnectionDebugger I'm connecting to my remote/online host and it's getting the data from tha db. I can even add and delete records. When I upload this file, it does not work. On my computer, it says "Waiting for localhost" down in the bottom web browser status window. ??? It should not be looking for any localhost? So, in conclusion, files works EVERYWHERE, except where I need to work. Any ideas? === I think I'm gonna like amfphp remoting a lot... I never got remoting to work with CFMX. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] lil' help with amfphp... works locally, not uploaded...
http://www.flash-creations.com/notes/servercomm_remoting_amfphp.php I have the above file working well on a local test server. Flash 8, amfphp, mySQL. Then I try to make this file work on my hosted sever: http://www.thelargeglass.com/highscores2/index.html The file works when I do a Test Movie and play it locally. According to NetConnectionDebugger I'm connecting to my remote/online host and it's getting the data from tha db. I can even add and delete records. When I upload this file, it does not work. On my computer, it says "Waiting for localhost" down in the bottom web browser status window. ??? It should not be looking for any localhost? So, in conclusion, files works EVERYWHERE, except where I need to work. Any ideas? === I think I'm gonna like amfphp remoting a lot... I never got remoting to work with CFMX. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com