Go Back   FlashFXP Forums > Community Chatter > Programming

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread
Old 01-06-2004, 06:45 PM   #1
Junior Member
 
Join Date: Dec 2003
Posts: 5
Question path on OnUploadComplete

hey!

I want to write a script that is activated when someone uploads a file to a certain folder.

I want to write this in ioftpd.ini:
OnUploadComplete = EXEC ..\php\php.exe -n C:\ioFTPD\scripts\blabla.php

and in the script file write something like this:
if($filedir==/somedir/){ do something }

where $filedir is the path to the file uploaded.

My question is:
Is there a variabel that holds the location/path to the file uploaded on OnUploadComplete?
anjo is offline  
Old 01-06-2004, 09:40 PM   #2
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
Default

they are passed in argument to your call:

..\php\php.exe -n C:\ioFTPD\scripts\blabla.php "real_file" CRC "vfs_file"
or something similar.
Mouton is offline  
Closed Thread
Create a free account to browse our forums without ads



Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 12:21 PM.