php-windows Digest 6 Sep 2002 06:23:07 -0000 Issue 1325

Topics (messages 15682 through 15687):

SquirrelMail
        15682 by: David Hollister

Scheduling Help
        15683 by: Nicole Amashta
        15684 by: dash php
        15685 by: Rich Gray

Re: mkdir problem
        15686 by: Shawn Sellars

Exec command not working.
        15687 by: Kurtis Harper

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 ---
Any SquirrelMail users out there?  I'm trying to figure out if global
address book functionality is simply a matter of verifying the LDAP - PHP
configuration or if there is a missing ingredient.  I'm running SM on W2K /
IIS5 / PHP 4.1.2 against Exchange Server 5.5.  
 
TANKS,
Dave
--- End Message ---
--- Begin Message ---
Hello,

I have a question regarding schedulings scripts. The server runs on a linux
machine. But the user does not have ability to use crons for scheduling.

Is there another way to schedule a php script to run, say, every 15 minutes
without any human intervention?

I am working on a maling script that currently sends out emails in real
time. However, since the numbers of members are growing, the time it takes
to complete is prolonged. So, I want to back up mailings in a "queue" and
have them sent out every XX number of  minutes instead of real time.

Your suggesions are greatly appreciated!

TIA!

Nicole
www.aeontrek.com



--- End Message ---
--- Begin Message ---
You'd have to execute the PHP script somehow via cron or AT (assuming
windows). That'd be the only way to have it run without keeping a web
browser open to a page set to refresh every 15 minutes...

-Dash

-----Original Message-----
From: Nicole Amashta [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 05, 2002 1:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Scheduling Help


Hello,

I have a question regarding schedulings scripts. The server runs on a linux
machine. But the user does not have ability to use crons for scheduling.

Is there another way to schedule a php script to run, say, every 15 minutes
without any human intervention?

I am working on a maling script that currently sends out emails in real
time. However, since the numbers of members are growing, the time it takes
to complete is prolonged. So, I want to back up mailings in a "queue" and
have them sent out every XX number of  minutes instead of real time.

Your suggesions are greatly appreciated!

TIA!

Nicole
www.aeontrek.com




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hey Nicole,
If you can run shell commands then you should be able to kick off a daemon
type shell script to run a php script every xxx mins - without cron/at
privileges tho' then the daemon script will have to be kicked off each time
the box gets rebooted but that wont be too often I should think or hope ...
Let me know if you need more info..
Cheers
Rich

-----Original Message-----
From: Nicole Amashta [mailto:[EMAIL PROTECTED]]
Sent: 05 September 2002 13:55
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Scheduling Help


Hello,

I have a question regarding schedulings scripts. The server runs on a linux
machine. But the user does not have ability to use crons for scheduling.

Is there another way to schedule a php script to run, say, every 15 minutes
without any human intervention?

I am working on a maling script that currently sends out emails in real
time. However, since the numbers of members are growing, the time it takes
to complete is prolonged. So, I want to back up mailings in a "queue" and
have them sent out every XX number of  minutes instead of real time.

Your suggesions are greatly appreciated!

TIA!

Nicole
www.aeontrek.com




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

--- End Message ---
--- Begin Message ---
Assuming you're running Windows, have you checked the permissions for
the FTP user on that directory in Windows itself?  I haven't had any
problems doing this, but it's for internal use, and the FTP user has
unrestricted access.

Good Luck,
Shawn Sellars

-----Original Message-----
From: Jochem [mailto:[EMAIL PROTECTED]] 
Subject: [PHP-WIN] mkdir problem

When I make a directory from within a php-file I don't have the right to
delete it or files in it with a ftp-progam. I use the command below:

mkdir($dir, 0777);

I first tried 0755 and later 0777, but neither of them worked.


--- End Message ---
--- Begin Message ---
Hi,
I am running IIS 5 and php 4.2

I will give a lilltle background on what I am trying to do,
I am trying to run a program called convert.exe through php.  This program
will take a jpg and reduce the resolution of the jpg.

The command format the works from the Command Line is:
convert -size 10x10 1.jpg 2.jpg

This will convert 1.jpg to a resolution of 10x10 and create the 10x10 file
called 2.jpg.

I tried different ways and none seem to work, some thing I tried are:

exec("convert -size 10x10 1.jpg 2.jpg");
shell_exec("convert -size 10x10 1.jpg 2.jpg");
exec("c:\picture.bat");     /with picture.bat containing convert -size 10x10
1.jpg 2.jpg


I found on the php.net a sample code of the exec command to display the task
list of XP (this only displayed a blank screen in my browser), this code
was:

<?php
$tlist1 = shell_exec("cmd /c tasklist");
$tlist2 = ereg_replace(" ","&nbsp;",$tlist1);
$tlist = nl2br($tlist2);
echo "<font face=\"Fixedsys\">\n";
echo $tlist;
echo "</font>";
?>



Is there something simple I am missing to run a program through php, any
advise is truly appreciated.

Thanks



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.385 / Virus Database: 217 - Release Date: 9/4/2002


--- End Message ---

Reply via email to