Error when running import_users.php

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
ssundquist
Posts: 12
Joined: Wed May 14, 2008 11:05 am
Location: Michigan
Contact:

Error when running import_users.php

Post by ssundquist »

I am running TimeTrex 2.2.11 on a Ubuntu linux server w/ MySQL. When I run the import_users.php from a browser I am getting "This script can only be called from the Command Line." Can I get some instructions on how to do this? I have over 100 employees to enter and importing a csv is obviously the easiest way to do it. Thanks in advance for any help!

-Shawn
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

You need to run the script from the command line with the proper command line options as well.

Something like this:

Code: Select all

php /var/www/timetrex/tools/import/import_users.php
Locked