Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-03-2003, 10:56 AM   #1
kdkr
Registered User
 
Join Date: Dec 2003
Posts: 11
Default Flash Remoting Question

I am trying the php remoting tutorial done by Jesse and keep getting a 'File Download' dialog box when testing the 'http://localhost/test_remoting/simple_gateway.php' in my browser. It appears I have all the dir paths correct though. Testing 'http://localhost/phpinfo.php' was successful, as well as testing 'http://localhost/flashservices/app/Gateway.php' in which I got a blank screen. If anyone could help me in what I'm doing wrong, it would be greatly appreciated.
kdkr is offline   Reply With Quote
Old 12-03-2003, 11:18 AM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
Default

Howdy and Welcome...

Did you install PHP on your local machine and what is the version number of the PHP and AMFPHP you have???

That error message normally means that your local server(IIS or Apache) cannot understand the PHP page...

But then, you said that phpinfo.php file was successfully executed... So, probably you can read the PHP version out of that page for me...

Another thing you might want to take a look is the directory sturucture of your AMFPHP files/directories... Go to the AMFPHP site and double check that you have the current version of AMFPHP and the file structure is the same as it is described in that place...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 12-03-2003, 11:51 AM   #3
kdkr
Registered User
 
Join Date: Dec 2003
Posts: 11
Default

Hi and thanks for the reply. I installed on my local machine(which is using IIS v5.1) the PHP version: 4.3.4 and MySQL Client API version 3.23.49. As for AMFPHP it was the 0.9.0 version. After downloading I extracted all the files into c\:inetpub\wwwroot\ creating the folder \flashservices.

Last edited by kdkr; 12-03-2003 at 11:56 AM..
kdkr is offline   Reply With Quote
Old 12-03-2003, 11:55 AM   #4
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
Default

Sorry, I can't really check if that's the correct settings or not cuz I just formatted the hard drive and in the process of installing whatever I can at the moment...

The setup sounds about right though... Maybe you might want to post the sample you have right now as exactly as possible so that somebody else can download and install it to see if there's anything wrong with the setup???
CyanBlue is offline   Reply With Quote
Old 12-03-2003, 03:20 PM   #5
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default Re: Flash Remoting Question

Quote:
Originally posted by kdkr
I am trying the php remoting tutorial done by Jesse and keep getting a 'File Download' dialog box when testing the 'http://localhost/test_remoting/simple_gateway.php' in my browser. It appears I have all the dir paths correct though. Testing 'http://localhost/phpinfo.php' was successful, as well as testing 'http://localhost/flashservices/app/Gateway.php' in which I got a blank screen. If anyone could help me in what I'm doing wrong, it would be greatly appreciated.
Thats by design, if you get the file download dialogue you are getting what you should. AMFPHP passes a amf mime type in the response headers. Regular browsers don't know what to do with them, thats why it asks you to download.

Anyways, the only real way to test the installation is to use flash. Are you running into any other problems.
freddycodes is offline   Reply With Quote
Old 12-03-2003, 03:30 PM   #6
kdkr
Registered User
 
Join Date: Dec 2003
Posts: 11
Default

Then that's allright. Thanks. No other problems, not as of yet, but I'm sure I will, being new to PHP. Thanks again for your reply.
kdkr is offline   Reply With Quote
Old 12-03-2003, 09:26 PM   #7
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
Default

Ah... Thanks freddy...
CyanBlue is offline   Reply With Quote
Old 04-23-2004, 01:46 AM   #8
trytodream
Registered User
 
Join Date: Apr 2004
Posts: 1
Question I have that problem 2 but...

I have the same exact problem with everything opening up fine execpt for the download box opening on the simple_gateway.php
But when i run the flash code for that tutorial, it just gives me three lines in the trace window and thats it. So the PHP connection doesnt work.
Its says this in the NetConnection Debugger:

DebugId: 0
EventType: "Status"
MovieUrl: "file:///C|/phpdev/www/public/test_remoting/talk.swf"
Protocol: "http"
Source: "Client"
Time: 1082698986889
Date (object #1)
....."Fri Apr 23 15:43:06 GMT+1000 2004"
Status (object #2)
.....code: 256
.....description: "This user is not does not have access to returnString"
.....details: "c:\phpdev\www\flashservices\app\Executive.php "
.....level: "User Error"
.....line: 295



Anyone know what the problem could be?

thanks
trytodream is offline   Reply With Quote
Old 08-18-2004, 02:53 PM   #9
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

I hear that removing the "roles" line from the method table resolves this issue.... Please try it and let me know. Credit to Sephiroth's site where I found this info...
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 09-16-2004, 07:12 PM   #10
jtubert
Registered User
 
Join Date: Sep 2004
Posts: 1
Default yes that worked....

yes that worked....
jtubert is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My brain hurts (onClipEvent question) andrea_levin ActionScript 2.0 3 03-25-2004 05:23 AM


All times are GMT. The time now is 08:13 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.