> if (!is_file ($pidFile)) {
> touch ($pidFile);
> // code to execute
> unlink ($pidFile);
> }
> ?>
> On Fri, 28 Dec 2001 15:31:33 +0100, Nicolas Guilhot wrote:
>
> >Running a php script with a cron job, how can I do to have only one
instance
> >of the script ru
Running a php script with a cron job, how can I do to have only one instance
of the script running ?
Thanks for any answer.
Nicolas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the li
Hi all,
I need to limit the amount of memory that a script can use. Is there a
function that I can use to tell the script to die if its memory usage
becomes greater than $MAX_MEMORY ! Or maybe, I could use a cron job to
monitor processes and kill them if they become too big ?
Thanks for your hel
Maybe you can try to launch the sql dump file from the SQL shell, not
directly from the command line. I think it will give you more feedback about
what is going on.
Go to the directory where you have your smarts.sql file.
Just type "mysql smarts"
And in the SQL shell type "\. smarts.sql"
If you ar
Check that you have not already close the connection to the mysql database.
Or maybe, the mysql_connect returned an error !
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 4 décembre 2001 08:42
À : [EMAIL PROTECTED]
Objet : [PHP] 1 is not a valid MySQL
You can also use this syntax :
$var1="variable 1";
$var2="variable 2";
for ($i= 1; $i < 3; $i++)
{
echo ${"var$i"};
}
-Message d'origine-
De : Olivier Masudi [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 30 novembre 2001 12:02
À : [EMAIL PROTECTED]
Objet : [PHP] HELP URGENT VARS !!!
$n
You can also have a look to EasyPhp http://www.easyphp.org/ which installs
Apache, PHP and MySQL on Windows box.
-Message d'origine-
De : Rob Bennion [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 21 novembre 2001 21:55
A : [EMAIL PROTECTED]
Objet : [PHP] Installing PHP with windows
Hi
I
Hi guys,
I have an sql query returning a result of nearly 150 000 rows. I use the
PEAR DB::getAll method to retrieve this result as an array which is very big
indeed (about 300Mb). I can't use the MySQL LIMIT statement because I need
to do sorting stuff on the result array.
My concern is that eve
Do you login to the database with a write access or a read only account ??
-Message d'origine-
De : Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 23 octobre 2001 14:22
À : [EMAIL PROTECTED]
Objet : [PHP] Update Query - Urgent
Hi
I have a php script generate a sql upd
}
Now all are integers.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: "Nicolas Guilhot" <[EMAIL PROTECTED]>
To: "Php General MailingList" <[EMAIL PROTECTED]>
Sent: Tuesday, September 11, 2001 3:24 PM
Subject
m preg_replace or am I doing wrong somewhere? Any help
would be appreciated.
Regards.
Nicolas Guilhot
--
PHP General 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]
num_return);
// Display the return value and the result of the program
echo "Return value : $num_return\n";
echo "Result :\n";
print_r($ary_result);
-Message d'origine-
De : Nicolas Guilhot [mailto:[EMAIL PROTECTED]]
Envoye : lundi 25 juin 2001 12:59
A : [EMAIL PRO
Hi all,
I have a big array (nearly 1000 lines) that I would like to pass to a C
program. I don't want to create a temporary file to pass my array (If
possible ?!?), and I don't think the command line will fit my needs.
Is there a way to execute a program with a php string as the standard
input.
You can try to modify your SQL query and add the "DISTINCT" statement !! It
will return each distinct row only once.
example "SELECT DISTINCT cat_id, cat_name FROM categories"
Regards,
Nicolas
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 9 mai
When reg_globals is off, you can't access session vars just with $varA and
$varB (thess variables are not set), you need to use
$HTTP_SESSION_VARS['varA'] and $HTTP_SESSION_VARS['varB'] to access these
variables !!
-Message d'origine-
De : ahmad varoqua [mailto:[EMAIL PROTECTED]]
Envoyé :
you can try
if (isset($HTTP_POST_VARS['posted_variable_name'])){
// do something
}
-Message d'origine-
De : Martin Cabrera Diaubalick [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 3 mai 2001 13:10
À : [EMAIL PROTECTED]
Objet : [PHP] Check if a variable has been posted-- HOW?
Hi everyone
Hi,
I've got a select tag with multiple selection enabled. When the user submit
the form, I want to pass all options from the select to another page. For
this I use javascript to select every element in my select tag. My problem,
is that in PHP, to access all selected elements in an array, I need
You can try to had HostnameLookups off in your httpd.conf if it is not
already present.
More info at http://www.apache.org/DELETE_ME/mod/core.html#hostnamelookups
---
> Hello, I can't understand the reason apache server running locally on my
> Win98 machine delays so much to respond b
You should also check if register_globals is set to ON in your php.ini file.
Otherwise you can't access you session variable just with $myvar !!
And in your code you never increment $myvar, so even if it works, you'll
always get 1.
Regards,
Nicolas Guilhot
-Message d'
I am having problem with PHP4 session variables. I think I misunderstood how
they work, and I can't see what I'm doing wrong. Any help would be
appreciated. I am using the version from EasyPhp 1.1.1.
Below is a short example to explain my problem. I've got two php scripts.
'test1.php' which start
20 matches
Mail list logo