Results 1 to 2 of 2

Thread: Path problem on cron jobs using Task Manager

  1. #1
    Join Date
    Nov 2010

    Path problem on cron jobs using Task Manager

    I'm using Windows task manager to execute PHP scripts on schedule.

    To do this I'm using a simply BAT file to run the command.

    start C:\wamp\bin\php\php5.3.5\php.exe C:\wamp\www\site\test.php arg1 arg2

    To testing the cron job I have it updating a text file with the date / time. Running the BAT file or script directly works file, the problem I'm having is when the task is run with Task Manager the relative paths are relative to a folder in the Task Manager, and not the script.

    Is there anything I can do to make the paths relative to the script folder and not Windows Task Manager?

  2. #2
    Join Date
    Jun 2003
    PHP Code:
    'include_path''.;'.dirname(__FILE__));// windows

    ini_set'include_path''.:'.dirname(__FILE__));// non win

    That as you first line should fix includes for you.
    Last edited by scragar; 03-30-2011 at 04:37 PM.
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center