Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-18-2011, 05:40 PM   PM User | #1
klgiger
New Coder

 
Join Date: Mar 2011
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
klgiger is an unknown quantity at this point
Server Side Action Script To Get PHP Ouput

I have a client side action script. In the same folder I have a php file check.php.
check.php checks if the account is disabled and returns true or false.

How can I get that value into the server side action script file. I am trying to query database and don't think I can do that with actionscript so I think I may be able to get that value from the php file.

Any help would be great!
klgiger is offline   Reply With Quote
Old 04-18-2011, 06:28 PM   PM User | #2
Wojjie
Regular Coder

 
Join Date: Apr 2011
Posts: 286
Thanks: 2
Thanked 39 Times in 39 Posts
Wojjie is on a distinguished road
You should be able to access the database with the action script using ODBC I believe.

Typically, merging two server side script technologies and having one call the other gets messy fast.
Wojjie is offline   Reply With Quote
Old 04-18-2011, 06:37 PM   PM User | #3
klgiger
New Coder

 
Join Date: Mar 2011
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
klgiger is an unknown quantity at this point
Quote:
Originally Posted by Wojjie View Post
You should be able to access the database with the action script using ODBC I believe.

Typically, merging two server side script technologies and having one call the other gets messy fast.

Yeah that wouldn't work for some reason. I really just want to be able to get the return value of the php script. I have the action script all ready and working on the server so the only thing I need to do is grab the return value.
I tried LoadVars and can't get that to work.
klgiger is offline   Reply With Quote
Old 04-18-2011, 06:56 PM   PM User | #4
Wojjie
Regular Coder

 
Join Date: Apr 2011
Posts: 286
Thanks: 2
Thanked 39 Times in 39 Posts
Wojjie is on a distinguished road
You would have to either run the php script through command line passing it the variables through, or have the action script request the URL with the script, and pass it variables through the _GET variables. Both of those are ugly solutions.

The problem is there is no direct communication between actionscript and php, they are separate entities.

I really suggest looking into getting ODBC working, anything else will be a hack.
Wojjie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:31 AM.


Advertisement
Log in to turn off these ads.