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...
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...
Comment