[PHP-DB] background process

2001-10-29 Thread Ric Manalac

hi everyone,

has anyone here created an application using
background processes? what i have in mind
is to be able to run the background process
once a day to check for files that are more than
5 days old and delete them. thanks in advance.

regards,

ric

--

==
Note: The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient,or an employee or agent
responsible for delivering this to the intended recipient,you are
hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received
this communication in error, please notify us immediately by
replying to the message and deleting it from your computer.
Thank you.
==




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


Re: [PHP-DB] background process

2001-10-29 Thread Ric Manalac

hi,

thanks for the reply. i will look up docs that discuss
cron. i'm sorry but i didn't get what you mean by
m/c. please explain. thanks!

regards,

ric

DL Neil wrote:

  has anyone here created an application using
  background processes? what i have in mind
  is to be able to run the background process
  once a day to check for files that are more than
  5 days old and delete them. thanks in advance.

 ric,

 PHP (and scripts) can be executed from the command line (given that it has been 
appropriately set up on your
 m/c). This is discussed in the docs. Thereafter it becomes a matter of setting up a 
'trigger' to kick-off
 execution at set times using CRON (*nix) or AT (Windows?32-bit).

 =dn

--

==
Note: The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient,or an employee or agent
responsible for delivering this to the intended recipient,you are
hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received
this communication in error, please notify us immediately by
replying to the message and deleting it from your computer.
Thank you.
==




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP-DB] executing system commands

2001-10-25 Thread Ric Manalac

hi,

i'm a newbiew php developer. i'm trying to
execute a system command in one of my
php scripts. what i would like to do is to
create a directory. my code goes like this:

// chunk of code starts here
$directory = generate_sessionid();
$command = mkdir /home/httpd/html/miroku/downloads/$directory;
system($command, $dirsuccess);
// chunk of code ends here

generate_sessionid() is a function that
generates a string that contains 16 random
integers (0-9). i want to use that random string
as the name of the directory that i'm creating.
i checked php3.ini if safe mode is on but it is
set to Off. thanks in advance!

regards,

ric

--

==
Note: The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient,or an employee or agent
responsible for delivering this to the intended recipient,you are
hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received
this communication in error, please notify us immediately by
replying to the message and deleting it from your computer.
Thank you.
==




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP-DB] NEXTVAL(serial)

2001-09-26 Thread Ric Manalac

hello.
i've seen DEFAULT NEXTVAL(serial) being used
in some examples but i have not seen an explanation
of what it exactly does. can anyone please explain
what it is and how it can be used?
i have some idea but i want to make sure by asking
other people. thanks!

ric

--

==
Note: The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient,or an employee or agent
responsible for delivering this to the intended recipient,you are
hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received
this communication in error, please notify us immediately by
replying to the message and deleting it from your computer.
Thank you.
==




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]