FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 3rd, 2003, 12:52 AM
7dirk 7dirk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Germany
Posts: 3 7dirk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problems with ftp_delete

I try to delete a file on a server. I´ve tried it with this code but its not working.

// get the directory
$file= chdir("../dateien/".$projekt."/".$bereich."/".$unterbereich);

$delete = ftp_delete($conn_id,$datei);

Could anyone help me out? Thanks
7dirk

Reply With Quote
  #2  
Old June 3rd, 2003, 01:55 AM
tommy.pr tommy.pr is offline
»» ¤ ««
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2003
Location: Indonesia
Posts: 905 tommy.pr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 33 m 25 sec
Reputation Power: 6
Send a message via Yahoo to tommy.pr
where the $datei 's come from ?

Reply With Quote
  #3  
Old June 3rd, 2003, 02:32 AM
7dirk 7dirk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Germany
Posts: 3 7dirk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
it coming from a form. It´s defined with something like data.swf

Reply With Quote
  #4  
Old June 3rd, 2003, 06:33 AM
tommy.pr tommy.pr is offline
»» ¤ ««
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2003
Location: Indonesia
Posts: 905 tommy.pr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 33 m 25 sec
Reputation Power: 6
Send a message via Yahoo to tommy.pr
So, what you're trying to show with the $file variable ?

Reply With Quote
  #5  
Old June 3rd, 2003, 07:18 AM
7dirk 7dirk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Germany
Posts: 3 7dirk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
the directory where the file is hanging around

Reply With Quote
  #6  
Old June 3rd, 2003, 10:20 AM
tommy.pr tommy.pr is offline
»» ¤ ««
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2003
Location: Indonesia
Posts: 905 tommy.pr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 33 m 25 sec
Reputation Power: 6
Send a message via Yahoo to tommy.pr
I know.... but what I mean is:

ftp_delete ( resource ftp_stream, string path)

So, you need to replace the "string path" above with your file path (which is $datei, right ?)

Remember, not only the file name, but the path. So if it come from a form, it should be

/var/www/html/files/data.swf

instead of

data.swf

Look at this example:

if this script named delete.php, and the structure of folder is

index.php
delete.php
other.php
datafile/data.swf

just use

/// delete.php ///
PHP Code:
<?
$ftp_stream 
= ......
....
....

ftp_delete($ftp_stream"./datafile/data.swf");
?>

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Problems with ftp_delete


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT