Punches import

Topics brought up by the TimeTrex open source community.
Locked
bonhomme
Posts: 93
Joined: Tue Mar 11, 2008 12:30 pm
Location: The Netherland
Contact:

Punches import

Post by bonhomme »

Can timetrex import punches from an existing file?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Punches import

Post by shaunw »

Yes, please see:

tools/import/import_punches.php
bonhomme
Posts: 93
Joined: Tue Mar 11, 2008 12:30 pm
Location: The Netherland
Contact:

Re: Punches import

Post 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."
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Punches import

Post 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
bonhomme
Posts: 93
Joined: Tue Mar 11, 2008 12:30 pm
Location: The Netherland
Contact:

Re: Punches import

Post 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
Attachments
Import_punches.doc
(155.5 KiB) Downloaded 315 times
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Punches import

Post 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.
bonhomme
Posts: 93
Joined: Tue Mar 11, 2008 12:30 pm
Location: The Netherland
Contact:

Re: Punches import

Post by bonhomme »

Just take a look on my document. Nothing happen after entered php.exe
Attachments
Doc5.doc
(122.5 KiB) Downloaded 304 times
Locked