Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 21:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Delete code does not display folder contents as active links

Discussion on Delete code does not display folder contents as active links within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2013
Posts: 5
Received Thanks: 0
Delete code does not display folder contents as active links

Here are two simple files that should work easily; however, the first, the folder code, does not display the folder contents, and the active links to them that would be needed to delete the files by linking them to delete.php file.

Code for folder containing files that might be deleted
Code:
$file = urlencode($dirArray[$index]);
print("<td><a href=\"delete.php?file=$file\">Delete $dirArray[$index]</a></td>");
$file variable should be defined to show contents of folder, so I tried using scandirectory.
Code:
<?php
$dir    = '/';
$file  = scandir($dir);
print_r($file);
$file = urlencode($dirArray[$index]);
print("<td><a href=\"delete.php?file=$file\">Delete $dirArray[$index]</a></td>");
nothing broken, but it dislayed this array instead of the folder contents: Array ( [0] => . [1] => .. [2] => bin [3] => boot [4] => dev [5] => etc [6] => hermes [7] => home [8] => lib [9] => lib32 [10] => lib64 [11] => opt [12] => proc [13] => run [14] => sbin [15] => selinux [16] => sys [17] => tmp [18] => usr [19] => var )

The delete file could be in a number of formats; I;m using this:
Ranyhoss72 is offline  
Reply


Similar Threads Similar Threads
Why should you delete the DUMP folder?
08/02/2010 - Silkroad Online - 4 Replies
Whats it do? How does it upload itself to the silkroad's dump server, without my damn permission? But if we rename the errsender.. or delete it, how does it send the dump folder?
Folder delete bug
03/16/2009 - Dekaron Private Server - 3 Replies
http://img14.imageshack.us/img14/4286/cannotremove folder.th.jpg Unlocker doesnt work and its pissing me off because i know i have 30+ folders i cant delete because of it
Delete GameGuard folder?
01/30/2008 - 9Dragons - 1 Replies
Maybe this idea is too simple, but... What would happen if I just deleted the GameGuard folder in 9Dragons? Would I be able to bypass it that simply? I don't want to cheat, I just want to keep using Pinnacle to train my buffs!



All times are GMT +2. The time now is 21:24.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.