BigCheeZ
06-04-2005, 08:25 AM
I am having a problem with my flash and php stuff. I am making a menu where it has the sub folders of a particular folder displayed. Here is the problem:
I send the relative address of the folder to be looked in (for sub folders) from flash to a php page. The php page then uses is_dir() and readdir(), etc to get the folders. When I send an address that has more than one '/' in it, it does not work. For example:
if i send 'folder1' and in the php it is is_dir("../news/$param") **$param is folder1** it will work fine. But if i send it '../news/folder1' and then use is_dir($param) it will not work. It is the exact same thing! I even tried using split() to split the parameter at every '/' and then reassemble it with a for looping and adding my own '/'. This is just so frustrating b/c if i hard code the address in the is_dir() then it works but if i send in the same thing it will not. I know it is sending the right thing as well since I have printed it out many times to make sure it was right.
I send the relative address of the folder to be looked in (for sub folders) from flash to a php page. The php page then uses is_dir() and readdir(), etc to get the folders. When I send an address that has more than one '/' in it, it does not work. For example:
if i send 'folder1' and in the php it is is_dir("../news/$param") **$param is folder1** it will work fine. But if i send it '../news/folder1' and then use is_dir($param) it will not work. It is the exact same thing! I even tried using split() to split the parameter at every '/' and then reassemble it with a for looping and adding my own '/'. This is just so frustrating b/c if i hard code the address in the is_dir() then it works but if i send in the same thing it will not. I know it is sending the right thing as well since I have printed it out many times to make sure it was right.