Full Version: Attach file using api
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I am new to this community, I have successfully install seeddms43x on my xamp server.
I am trying to attach a file using api (adddoc.php), from DOS prompt. I have go to the folder "xampp\htdocs\seeddms43x\seeddms-4.3.3\utils" and then enter a script:- php -f seeddms-adddoc --config "" -c "Done" -k "Done" -s "3" -n "Done" -V "1" -s ".txt" -t "text/plain" -F "2/" -f "../seeddms-adddoc".
But i got gollowing message on prompt and my file is not added in seeddms:

Usage: php [options] [-f] <file> [--] [args...]
php [options] -r <code> [--] [args...]
php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
php [options] -S <addr>:<port> [-t docroot]
php [options] -- [args...]
php [options] -a

-a Run interactively
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse and execute <file>.
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-r <code> Run PHP <code> without using script tags <?..?>
-B <begin_code> Run PHP <begin_code> before processing input lines
-R <code> Run PHP <code> for every input line
-F <file> Parse and execute <file> for every input line
-E <end_code> Run PHP <end_code> after processing all input lines
-H Hide any passed arguments from external tools.
-S <addr>:<port> Run with built-in web server.
-t <docroot> Specify document root <docroot> for built-in web server.
-s Output HTML syntax highlighted source.
-v Version number

I think i have not followed the right process to attach file using api. I have searched for a same but did not find any example. So please tell me the right process with an example.