A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: PHP variables not loading

  1. #1

    PHP variables not loading

    I'm completely baffled.
    I've got some actionscript, loadVariables(url) etc.
    that will load the name=value pairs from this
    http://www.sprocklander.com/surfMap/Load.php
    but not from this
    http://www.findmyadventure.com/loadadv.php

    The php that constructs the string of name=value pairs is the same for both. There aren't any errors in the string for the one that won't load, 'cause I converted it to a txt file and it loaded fine.
    It just won't load from the php.
    Any thoughts? I read another post about something similiar, where the solution was to use Falsh 5 rather than 6. Tried that , no help.
    Maybe the file permission for the php?
    I have no idea....

  2. #2
    Registered User
    Join Date
    Jul 2002
    Location
    Dallas, TX USA
    Posts
    171
    I'd suggest you forget the value = pairs bit and go to a text file and use smart string scripting to get your 'own' predetermined set of data which is MUCH more flexible.

    See attached... basically this script reads the entire text file, with line breaks and white space into the variable you designate. Use it with the loadVariables action with "GET" and make sure you have chmod 777 'full read/write/execute' on the text file and read/execute for the php script for most servers to work right.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    can you post URLs to the movies that try to read these data?
    @DFWStudios: the best thing for most servers is to do permissions RIGHT. This means usually 644 for a textfile that is maintained by the author via ftp, or 666 for a textfile that is maintained by the server, but certainly no execute bit.

    Musicman

  4. #4
    Musicman-
    Here's the one I built from scratch
    http://www.sprocklander.com/surfMap/

    I'm using basically the same PHP and Actionscript for this one
    http://www.findmyadventure.com/adventure.html

    but since it won't load from the PHP, for the moment I'm using
    http://www.findmyadventure.com/loadadv.txt
    rather than
    http://www.findmyadventure.com/loadadv.php

    DFWStudios-
    So are you suggesting rather than have the PHP query the db and spit out a name=value string, have it write the name=value string to a txt file, then have Flash load from the txt?
    So I'd be doing something like
    myLoadVars.send('loadadv.php')
    to intiatate the query and
    myLoadVars.load('loadadv.txt')
    to get the results?

    BTW, I'm old to Flash, new to the backend. Only been working with PHP for a few months

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center