Delicious      Technorati      Blinklist      Furl      Reddit

TimeTrex Time and Attendance

TimeTrex Time and Attendance


* FAQ    * Search
* Login   * Register

All times are UTC - 8 hours [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Punches import
PostPosted: Fri Mar 05, 2010 11:08 am 
Offline

Joined: Tue Mar 11, 2008 12:30 pm
Posts: 93
Location: The Netherland
Can timetrex import punches from an existing file?


Top
 Profile  
 
 Post subject: Re: Punches import
PostPosted: Fri Mar 05, 2010 11:32 am 
Offline

Joined: Tue Sep 19, 2006 2:22 pm
Posts: 6348
Yes, please see:

tools/import/import_punches.php


Top
 Profile  
 
 Post subject: Re: Punches import
PostPosted: Fri Mar 05, 2010 11:42 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: Punches import
PostPosted: Fri Mar 05, 2010 12:16 pm 
Offline

Joined: Tue Sep 19, 2006 2:22 pm
Posts: 6348
You need to be familiar with executing command line utilities and passing switches/arguments to them. Here is an example for Windows:

Code:
c:\timetrex\php\php.exe c:\timetrex\tools\import\import_punches.php


Top
 Profile  
 
 Post subject: Re: Punches import
PostPosted: Fri Mar 05, 2010 12:39 pm 
Offline

Joined: Tue Mar 11, 2008 12:30 pm
Posts: 93
Location: The Netherland
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 115 times
Top
 Profile  
 
 Post subject: Re: Punches import
PostPosted: Fri Mar 05, 2010 12:49 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: Punches import
PostPosted: Fri Mar 05, 2010 1:10 pm 
Offline

Joined: Tue Mar 11, 2008 12:30 pm
Posts: 93
Location: The Netherland
Just take a look on my document. Nothing happen after entered php.exe


Attachments:
Doc5.doc [122.5 KiB]
Downloaded 107 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Time and Attendance




Powered by phpBB® Forum Software © phpBB Group