Can't use scandir() with this plugin
-
Hi there! Love the plugin, but I’m having a little hangup. I am trying to use a scandir() function and it’s giving me an error. Here’s my code:
$dir = “../wp-content/uploads/easter_pics”;
$images = scandir($dir);And the error is:
Warning: scandir(../wp-content/uploads/easter_pics): failed to open dir: No such file or directory in /home/jaspercreel87/public_html/jaellebrain.com/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 4
Warning: scandir(): (errno 2): No such file or directory in /home/jaspercreel87/public_html/jaellebrain.com/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 4
Is it not possible to escape the plugin folder to follow another path using scandir()?
- The topic ‘Can't use scandir() with this plugin’ is closed to new replies.