PDA

View Full Version : path on OnUploadComplete


anjo
01-06-2004, 07:45 PM
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?

Mouton
01-06-2004, 10:40 PM
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.