On Wed, 2008-09-24 at 21:45 -0400, Eric Butera wrote:
On Wed, Sep 24, 2008 at 9:22 PM, Shelley [EMAIL PROTECTED] wrote:
2008/9/25 Philip Thompson [EMAIL PROTECTED]
On Sep 24, 2008, at 7:29 AM, Maciek Sokolewicz wrote:
tedd wrote:
At 12:25 PM +0100 9/24/08, Ashley Sheridan wrote:
Hello all,
Is there a way to limit the memory consumption and / or the CPU
consumption of processes launched by the php functions system,
exec, passthru, proc_open and shell_exec?
We use mod_php with an apache (mpm-prefork) on Linux.
The following settings don't have any effect at all:
PHP:
On 25 September 2008 03:45, VamVan advised:
So guys,
I found some thing strange that happened to me yesterday. Its small
but
kinda freaked me out.
So I have a tokenmap.php that I include include in different
configuration
files. Some are classes and some are simple php files.
So in my
I use the following script to make forward an ajax call from the browser
to a server other than my main webserver.
On my homeserver (debian/apache2/php5 with rootxs) it runs fine, but on
my shared hosting (servage.net, phpinfo at
http://mediabeez.veerman.ws/mb/sn.php) it freezes / hangs on
Thodoris wrote:
If you are trying to open a file that has a URL instead of a local path,
then it will always be opened as read-only, and there is no way to
change this. If you are opening it using a local path (samba, nfs, fish,
etc) then I would check to see the file permissions. As the
Rene Veerman wrote:
I use the following script to make forward an ajax call from the browser
to a server other than my main webserver.
On my homeserver (debian/apache2/php5 with rootxs) it runs fine, but on
my shared hosting (servage.net, phpinfo at
http://mediabeez.veerman.ws/mb/sn.php) it
Hi there,
I would like to run a php file via cron job and there is a parameter to
be passed. Unfortunatelly this does not work:
# /usr/local/bin/php /home/www/create_notification_emails.php?tf=2
Could not open input file: /home/www/create_notification_emails.php?tf=2
The problem seems to be
Merlin Morgenstern wrote:
Hi there,
I would like to run a php file via cron job and there is a parameter
to be passed. Unfortunatelly this does not work:
# /usr/local/bin/php /home/www/create_notification_emails.php?tf=2
Could not open input file:
Nathan Rixham wrote:
do a phpinfo() and check if sockets are enabled.. lots of shared hosts
have them turned off
yep, sockets are enabled on the shared hoster.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Merlin Morgenstern schreef:
Hi there,
I would like to run a php file via cron job and there is a parameter to
be passed. Unfortunatelly this does not work:
# /usr/local/bin/php /home/www/create_notification_emails.php?tf=2
Could not open input file:
Hello Jochem,
thank you this has solved my problem:
bla.php 2
$tf = $argv[1];
Best regards,
Merlin
Jochem Maas wrote:
Merlin Morgenstern schreef:
Hi there,
I would like to run a php file via cron job and there is a parameter to
be passed. Unfortunatelly this does not work:
#
It's actually the server i'm calling that's at fault, it didn't serve
connections from the outside world..
So not a php thing at all, sry for the wasted time..
Rene Veerman wrote:
I use the following script to make forward an ajax call from the
browser to a server other than my main
At 3:44 PM -0400 9/24/08, Robert Cummings wrote:
Seems kind of silly to have every function in it's own file. Also seems
kind of cluttered ot have every function in one file.
Now grouping related functions into a single file... that's sounds like
a good middle ground.
Cheers,
Rob.
The Goldie
-Original Message-
Is there a way to limit the memory consumption and / or the CPU
consumption of processes launched by the php functions system,
exec, passthru, proc_open and shell_exec?
I suspect...
PHP pretty much releases control to the shell or whatever, and just waits
around
On Thu, Sep 25, 2008 at 6:34 AM, Merlin Morgenstern
[EMAIL PROTECTED] wrote:
Hello Jochem,
thank you this has solved my problem:
bla.php 2
$tf = $argv[1];
Conversely, on a *NIX system, if you want to grab it via the web -
locally or from a remote server - you can do this:
* * * * *
So I'm trying to figure out how to do a little math in php to add up
the number of hours that people have worked (Still on the timecard for
anyone following along at home)
I have it inserting time in and timeout as timestamps into a MySQL
database, from there, I use a while loop to display
Jason Pruim wrote:
So I'm trying to figure out how to do a little math in php to add up
the number of hours that people have worked (Still on the timecard for
anyone following along at home)
I have it inserting time in and timeout as timestamps into a MySQL
database, from there, I use a
Jason Pruim wrote:
So I'm trying to figure out how to do a little math in php to add up the
number of hours that people have worked (Still on the timecard for
anyone following along at home)
I have it inserting time in and timeout as timestamps into a MySQL
database, from there, I use a
On Sep 25, 2008, at 11:19 AM, Nathan Rixham wrote:
Jason Pruim wrote:
So I'm trying to figure out how to do a little math in php to add
up the number of hours that people have worked (Still on the
timecard for anyone following along at home)
I have it inserting time in and timeout as
Jason Pruim wrote:
So I'm trying to figure out how to do a little math in php to add up the
number of hours that people have worked (Still on the timecard for
anyone following along at home)
I have it inserting time in and timeout as timestamps into a MySQL
database, from there, I use a
On Sep 25, 2008, at 11:24 AM, Jason Pruim wrote:
On Sep 25, 2008, at 11:19 AM, Nathan Rixham wrote:
Jason Pruim wrote:
So I'm trying to figure out how to do a little math in php to add
up the number of hours that people have worked (Still on the
timecard for anyone following along at
On Sep 25, 2008, at 11:28 AM, Jim Lucas wrote:
Jason Pruim wrote:
So I'm trying to figure out how to do a little math in php to add
up the
number of hours that people have worked (Still on the timecard for
anyone following along at home)
I have it inserting time in and timeout as
On Thu, Sep 25, 2008 at 4:28 AM, Valentin Schmid - ICSurselva AG
[EMAIL PROTECTED] wrote:
Hello all,
Is there a way to limit the memory consumption and / or the CPU
consumption of processes launched by the php functions system,
exec, passthru, proc_open and shell_exec?
Since you're
Jason Pruim wrote:
On Sep 25, 2008, at 11:28 AM, Jim Lucas wrote:
Jason Pruim wrote:
So I'm trying to figure out how to do a little math in php to add up the
number of hours that people have worked (Still on the timecard for
anyone following along at home)
I have it inserting time in
Jason Pruim wrote:
So I'm trying to figure out how to do a little math in php to add up the
number of hours that people have worked (Still on the timecard for
anyone following along at home)
I have it inserting time in and timeout as timestamps into a MySQL
database, from there, I use a
-Original Message-
From: Jason Pruim [mailto:[EMAIL PROTECTED]
Subject: [PHP] Math problems (No not high school math!)
So I'm trying to figure out how to do a little math in php to add up
the number of hours that people have worked (Still on the timecard for
anyone following
Interesting. Thank you
On Thu, Sep 25, 2008 at 2:01 AM, Ford, Mike [EMAIL PROTECTED] wrote:
On 25 September 2008 03:45, VamVan advised:
So guys,
I found some thing strange that happened to me yesterday. Its small
but
kinda freaked me out.
So I have a tokenmap.php that I include
On Sep 25, 2008, at 11:44 AM, Jim Lucas wrote:
Jason Pruim wrote:
On Sep 25, 2008, at 11:28 AM, Jim Lucas wrote:
Jason Pruim wrote:
So I'm trying to figure out how to do a little math in php to add
up the
number of hours that people have worked (Still on the timecard for
anyone
Jason Pruim a écrit :
$totalday = $totalday/60/60;
If you're working with legal dates, this is wrong. A day can be 23 or
25 hours long. Thing about time changing (winter and summer time).
Use strtotime to avoid this kind of problems.
--
Mickaël Wolff aka Lupus Michaelis
Is it possible to use the php filter function to sanitize a regular
expression such as to return just the date part of a string that may be
passed by an nonobservant user?
#\d\d/\d\d/\d\d\d\d#
input would be something like
as02/05/2008df
I want to use the filter to give me just the date
by the by I'm using filter_var($string, FITER_VALIDATE_REGEXP, blah blah
blah)
Frank Stanovcak [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is it possible to use the php filter function to sanitize a regular
expression such as to return just the date part of a string that may
Run another query and let MySQL add it up.
-Original Message-
From: Jason Pruim [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2008 10:05 AM
To: PHP General List
Subject: [PHP] Math problems (No not high school math!)
So I'm trying to figure out how to do a little math in
-Original Message-
From: Frank Stanovcak [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2008 12:41 PM
To: php-general@lists.php.net
Subject: [PHP] Filters and sanitizing a regexp
Is it possible to use the php filter function to sanitize a regular
expression such as to
...
Hi,
Had to have a play with this. Here's my (somewhat stricter) regex:
preg_match('/((?:[0-3]?[0-9])?\d)-([0-1]?\d)-20\d\d/', '31-12-2000', $matches);
if (!empty($matches[1]) AND $matches[1] 31) $matches = array();
if (!empty($matches[2]) AND $matches[2] 12) $matches = array();
You
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Heyes
Sent: Thursday, September 25, 2008 2:28 PM
To: Boyd, Todd M.
Cc: Frank Stanovcak; php-general@lists.php.net
Subject: Re: [PHP] Filters and sanitizing a regexp
...
Hi,
Had to
Greetings, It flance.
In reply to Your message dated Thursday, September 25, 2008, 0:21:59,
-Original Message-
I am working on the code of a former employee and
I don't understand
what this $arr['N']['#'] refers
to.
I know it is a multidimensional associative array
but
Ashley Sheridan schreef:
On Wed, 2008-09-24 at 21:45 -0400, Eric Butera wrote:
On Wed, Sep 24, 2008 at 9:22 PM, Shelley [EMAIL PROTECTED] wrote:
2008/9/25 Philip Thompson [EMAIL PROTECTED]
On Sep 24, 2008, at 7:29 AM, Maciek Sokolewicz wrote:
tedd wrote:
At 12:25 PM +0100 9/24/08, Ashley
tedd schreef:
At 3:44 PM -0400 9/24/08, Robert Cummings wrote:
Seems kind of silly to have every function in it's own file. Also seems
kind of cluttered ot have every function in one file.
Now grouping related functions into a single file... that's sounds like
a good middle ground.
Cheers,
On Fri, 2008-09-26 at 01:05 +0200, Jochem Maas wrote:
tedd schreef:
At 3:44 PM -0400 9/24/08, Robert Cummings wrote:
Seems kind of silly to have every function in it's own file. Also seems
kind of cluttered ot have every function in one file.
Now grouping related functions into a single
Ashley Sheridan schreef:
On Fri, 2008-09-26 at 01:05 +0200, Jochem Maas wrote:
tedd schreef:
At 3:44 PM -0400 9/24/08, Robert Cummings wrote:
Seems kind of silly to have every function in it's own file. Also seems
kind of cluttered ot have every function in one file.
Now grouping related
On Thu, Sep 25, 2008 at 3:57 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote:
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Heyes
Sent: Thursday, September 25, 2008 2:28 PM
To: Boyd, Todd M.
Cc: Frank Stanovcak; php-general@lists.php.net
I'd return an error. You can use this function to make sure they
entered a valid date:
http://us.php.net/checkdate
Provide a template like:
(Month/Day/Year) or for EU (Day/Month/Year)
If it's not valid, return an error and let them fix it. Chances are, if
they entered more characters than a
At 9:22 AM +0800 9/25/08, Shelley wrote:
2008/9/25 Philip Thompson [EMAIL PROTECTED]
On Sep 24, 2008, at 7:29 AM, Maciek Sokolewicz wrote:
tedd wrote:
At 12:25 PM +0100 9/24/08, Ashley Sheridan wrote:
On Wed, 2008-09-24 at 09:20 +0800, Shelley wrote:
This is slightly OT but I honestly don't know what else I can do.
I was asked to migrate a website from diff hosts. Okay, pretty easy, right?
Well, as usual, it wasn't.
Site pages content type was ISO-8559-1 and it was developed for a MySQL5
database that used latin1 as charset and InnoDB as
Thiago H. Pojda wrote:
This is slightly OT but I honestly don't know what else I can do.
I was asked to migrate a website from diff hosts. Okay, pretty easy, right?
Well, as usual, it wasn't.
Site pages content type was ISO-8559-1 and it was developed for a MySQL5
database that used latin1 as
On Fri, 2008-09-26 at 01:05 +0200, Jochem Maas wrote:
tedd schreef:
At 3:44 PM -0400 9/24/08, Robert Cummings wrote:
Seems kind of silly to have every function in it's own file. Also seems
kind of cluttered ot have every function in one file.
Now grouping related functions into a single
On Fri, 2008-09-26 at 02:10 +0200, Jochem Maas wrote:
Ashley Sheridan schreef:
On Fri, 2008-09-26 at 01:05 +0200, Jochem Maas wrote:
tedd schreef:
At 3:44 PM -0400 9/24/08, Robert Cummings wrote:
Seems kind of silly to have every function in it's own file. Also seems
kind of cluttered
OK, I finally went to do it and this link doesn't work:
PHP 5.3.0alpha2 VC9 x86
http://downloads.php.net/pierre/php-5.3.0alpha2-nts-Win32-VC9.zip
On Thu, Sep 4, 2008 at 5:23 AM, Johannes Schlüter [EMAIL PROTECTED] wrote:
On Wed, 2008-09-03 at 23:36 -0700, steve wrote:
It is pretty much
48 matches
Mail list logo