Jump to content

Scheduled Task and include relative addressing


Sanderse

Recommended Posts

Hi,

I have a PHP background job, running daily via Task Scheduler (Windows server).

So far, it works.

 

I have the following directories:

A with subdir A2

B with subdir B2

 

Suppose the php file is in directory A.

The php contains several include statements. This works as long as the file to be included is in the same directory as the job itself or in subdirectory A2: include ("subjob.php")  and include ("A2/subjob.php")

 

However, I want to include files from dir B or B2

But include ("../B/subjob.php") refuses to work.

 

The strange thing is that in interactive jobs this all works without any problem (of course).

In the scheduled situation, the "downstream addressing" to A2 works, but the "upstream addressing" does not.

 

Any help will be appreciated.

Regards,

Jack

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.