Problem with file deletion

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
formlesstree3
-


Joined: 11 Aug 2008
Posts: 2

PostPosted: Mon Aug 11, 2008 6:26 am    Post subject: Problem with file deletion Reply with quote

Well, I'm writing a file deletion script, which will delete files in a different directory (../uploads/), using the following code: delete.php?f=file.ext


Here's the code:
Code:
http://pastebin.com/m37ba5e1

It gives several errors:

Code:


Warning: opendir(BASE_DIR) [function.opendir]: failed to open dir: No error in D:\xampp\htdocs\file\administration\delete.php on line 15

Warning: readdir(): supplied argument is not a valid Directory resource in D:\xampp\htdocs\file\administration\delete.php on line 17

Warning: unlink() [function.unlink]: No error in D:\xampp\htdocs\file\administration\delete.php on line 38


I dunno what to do...
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Aug 11, 2008 9:02 pm    Post subject: Re: Problem with file deletion Reply with quote

formlesstree3 wrote:
Well, I'm writing a file deletion script, which will delete files in a different directory (../uploads/), using the following code: delete.php?f=file.ext


Here's the code:
Code:
http://pastebin.com/m37ba5e1

It gives several errors:

Code:


Warning: opendir(BASE_DIR) [function.opendir]: failed to open dir: No error in D:\xampp\htdocs\file\administration\delete.php on line 15

Warning: readdir(): supplied argument is not a valid Directory resource in D:\xampp\htdocs\file\administration\delete.php on line 17

Warning: unlink() [function.unlink]: No error in D:\xampp\htdocs\file\administration\delete.php on line 38


I dunno what to do...


I think I see the problem already! Why don't you delete D:\xampp and install the Abyss Web Server software instead. You need a server software that fully complies to the CGI specification, and that's not XAMPP. Abyss provides full support for CGI and its never gave me any problems. Since this is an Abyss Web Server related forum, I have no choice but to close this topic. Please consider using the Abyss server software so that we may help you. We don't provide support for third party software, such as XAMPP.

Best regards, Josh
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group