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 » Fri Mar 05, 2010 11:08 am

Can timetrex import punches from an existing file?

shaunw
Posts: 7453
Joined: Tue Sep 19, 2006 2:22 pm

Re: Punches import

Post by shaunw » Fri Mar 05, 2010 11:32 am

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 » Fri Mar 05, 2010 11:42 am

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: 7453
Joined: Tue Sep 19, 2006 2:22 pm

Re: Punches import

Post by shaunw » Fri Mar 05, 2010 12:16 pm

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 » Fri Mar 05, 2010 12:39 pm

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 178 times

shaunw
Posts: 7453
Joined: Tue Sep 19, 2006 2:22 pm

Re: Punches import

Post by shaunw » Fri Mar 05, 2010 12:49 pm

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 » Fri Mar 05, 2010 1:10 pm

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

Locked