php-windows Digest 24 Apr 2005 06:12:22 -0000 Issue 2644

Topics (messages 25905 through 25906):

Re: How do I get php to repeat and action every day?
        25905 by: Mike

Re: Problem 1 of 2 - Sessions not working
        25906 by: Louis Solomon \[SteelBytes\]

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
> I have gotten a good idea about how contrabs work and task 
> schedlar. Enough to know that task schedular does only permit 
> one schedualed task at a time.
> If, say, I had an entire folder of files that just kept 
> growing, it would take allot of manual intervention to get 
> the entire folder to execute with task schedular, however, is 
> there any way to do this in a contrab?

In all honesty, if I had a folder of scripts that I needed to execute at a
given time, I'd probably cheat and make one "control" script that was
responsible for calling all of the other scripts. 

So 

master_script.php

would look vaguely like:

<?php
exec("php script1.php");
exec("php script2.php");
exec("php script3.php");
exec("php script4.php");
?>

That way as needs change you can just make changes to the one
master_script.php instead of having to edit your cron jobs or risk creating
stupidly large amounts of windows scheduled tasks.

Granted that this requires you to have scripts that all will run at the same
time and don't demand different execution times. The other things to keep in
mind is that the initial instance of PHP that runs that master_script.php
will need to be running for the entire length of time that it will take all
of the other files to execute - so be careful of PHP timeouts and modify
your php.ini file if needed/if safe.

The other option, of course, is to get more fancy and read the contents of a
file, build an array and then build a for loop that'd exec() each of the
array elements in turn. This would make the process a lot more hands-off
than the above-mentioned hard-coded master_script.php file (though a bit
longer to impliment and with the same inherent time-out issue as noted above
plus a bit more time for the script itself to execute).

Either way, there's a few options that may spawn some better ideas from
others on the list :)

> Thanks!

Not a problem!

-M

--- End Message ---
--- Begin Message ---
session.save_handler = file
session.save_path = e:\PHP\sessiondata    ; argument passed to save_handler

is there adequate permissions on e:\PHP\sessiondata?  (simple test, set it 
to everyone full, and see if it helps)

-- 
Louis Solomon
www.SteelBytes.com

"Lists" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Sorry, I overlooked adding that <sigh />.

This is the last configuration that I tried.

[Session]
session.save_handler = file
session.save_path = e:\PHP\sessiondata    ; argument passed to save_handler
session.use_cookies = 1
; session.use_only_cookies = 0
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 1200
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor     = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="


Must admit that some of the settings here are foreign to me . . . I've just 
been adjusting by rote at the suggestion(s) of folk who are better steeped 
in session parameters.  Still on a learning curve . . . which suddenly got 
very steep <sigh />.

> > My PHP.INI file appears to be properly configured for session usage - at
> > least, it is set according to what document specs I've been able to 
> > find.

> so what are your ini session settings?

> --
> Louis Solomon
> www.SteelBytes.com

> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php 

--- End Message ---

Reply via email to