| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Closed Join Date: Oct 2005 Location: United Kingdom
Posts: 1,554
![]() ![]() ![]() ![]() | Deleting Files Hi I have made a image host script i want to make a admincp now so in the admincp i need help i want to know how i can do this: List all images in the directory (in a 250 * 200 box or something in a list) Then at the side of the images put a link so i can delte a image, i know it would use unlink or something but i can't figure out how to do it, iv got this so far; PHP Code: Thanks. |
| |
| | #2 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | something like the following should be ok:- PHP Code:
Last edited by filth@flexiwebhost; 07-01-2006 at 05:17 PM.
|
| |
| | #4 (permalink) | ||||
| NamePros Regular Join Date: Dec 2005
Posts: 210
![]() |
PHP Code: | ||||
| |
| | THREAD STARTER #6 (permalink) | ||||
| Account Closed Join Date: Oct 2005 Location: United Kingdom
Posts: 1,554
![]() ![]() ![]() ![]() |
| ||||
| |
| | #7 (permalink) |
| Pro Coder & Designer Join Date: Apr 2005 Location: Netherlands
Posts: 967
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Are permissions set correctly ?
__________________ aween web development |
| |
| | #9 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | have you tried changing $read to a absolute path instead of a relative path. Also try putting the following line at the top of the file (after the <?php):- PHP Code: |
| |
| | THREAD STARTER #12 (permalink) | ||||
| Account Closed Join Date: Oct 2005 Location: United Kingdom
Posts: 1,554
![]() ![]() ![]() ![]() |
so i dont know but i just got it to start me off and help you/other to help me. | ||||
| |
| | #13 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Edited a bit. I tried this and I know it works: PHP Code:
Last edited by SecondVersion; 07-02-2006 at 02:40 PM.
|
| |
| | THREAD STARTER #14 (permalink) |
| Account Closed Join Date: Oct 2005 Location: United Kingdom
Posts: 1,554
![]() ![]() ![]() ![]() | SV still getting a blank page, here i found another script that dont give me a blank page, PHP Code: I set the files/folder to 777 |
| |