Page 1 of 1
Punches import
Posted: Fri Mar 05, 2010 11:08 am
by bonhomme
Can timetrex import punches from an existing file?
Re: Punches import
Posted: Fri Mar 05, 2010 11:32 am
by shaunw
Yes, please see:
tools/import/import_punches.php
Re: Punches import
Posted: Fri Mar 05, 2010 11:42 am
by bonhomme
That's nice but how can I execute the script? I just try but I got the message "This script can only be called from the Command Line."
Re: Punches import
Posted: Fri Mar 05, 2010 12:16 pm
by shaunw
You need to be familiar with executing command line utilities and passing switches/arguments to them. Here is an example for Windows:
Code: Select all
c:\timetrex\php\php.exe c:\timetrex\tools\import\import_punches.php
Re: Punches import
Posted: Fri Mar 05, 2010 12:39 pm
by bonhomme
If I am not wrong it should be executed at the Dos prompt. after proceeding what I got is the file source code. i was expecting prompt asking me to browse
Re: Punches import
Posted: Fri Mar 05, 2010 12:49 pm
by shaunw
You didn't follow the instructions in my past post, you basically just opened the file for editing, instead of executing it with php.exe.
Re: Punches import
Posted: Fri Mar 05, 2010 1:10 pm
by bonhomme
Just take a look on my document. Nothing happen after entered php.exe