Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2011
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    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!

  • #2
    Regular Coder
    Join Date
    Apr 2011
    Posts
    286
    Thanks
    2
    Thanked 39 Times in 39 Posts
    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.

  • #3
    New Coder
    Join Date
    Mar 2011
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Regular Coder
    Join Date
    Apr 2011
    Posts
    286
    Thanks
    2
    Thanked 39 Times in 39 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •