I am trying to pass a variable directory name to a script but it seems to just open the root directory on the server. Why won't this work:
opendir('/'.$gallery.'/')
But this does when I specify the string in the code:
opendir('/directory/');
Is the variable somehow not a string or something? I pass the variable in the url, ie. dir=directory.
opendir('/'.$gallery.'/')
But this does when I specify the string in the code:
opendir('/directory/');
Is the variable somehow not a string or something? I pass the variable in the url, ie. dir=directory.