I need help about passing variables from asp vbscript to php...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mao120846
    New Member
    • Feb 2007
    • 1

    I need help about passing variables from asp vbscript to php...

    I search for an asp vbscript page (residing on a windows web server) that pass a "path" variable to a php page on a different web server (php capable).
    The php script receive the "path" variable and look in that directory for every subdirectory. Then returns an array of sub-directories to the calling asp page...

    The php script may be similar to this:

    <?
    $pathdir = $_GET["dirpath"];
    $dirsarray=new Array();
    $curdirs=0;
    if($handle = opendir($pathdi r)) {
    while(false !== ($file = readdir($handle ))){
    if(is_dir($file ) AND $file !=="." AND $file !==".."){
    echo '$dirsarray[' . $curdirs .']="' . $file . '";';
    $curdirs++;
    }
    }
    closedir($handl e);
    }
    ?>

    In which way could I manage in asp vbscript the php array "$dirsarray "?
    Thank you in advance...
  • gateshosting
    New Member
    • Dec 2006
    • 25

    #2
    You will probably have to do a redirect with a query string, then pull the values out of the query string.

    Michael C. Gates

    Comment

    • Prabhua
      New Member
      • Nov 2006
      • 29

      #3
      test message

      Comment

      Working...