On Mar 4, 2011 4:53 AM, "Ashley M. Kirchner" wrote:
>
> > -Original Message-
> > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
> > Sent: Thursday, March 03, 2011 2:03 PM
> > To: sstap...@mnsi.net
> > Cc: php-general@lists.php.net
> > Subject: RE: [PHP] Check for open file
> >
>
> -Original Message-
> From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
> Sent: Thursday, March 03, 2011 2:03 PM
> To: sstap...@mnsi.net
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Check for open file
>
>
> As far as I was aware, if you're in the middle of writing to a fi
On 03/03/2011 04:31 PM, tedd wrote:
> At 2:58 PM -0800 3/3/11, Scott Baker wrote:
>> I have a global header.php file that sets up a bunch of stuff: DB,
>> global variables, and does session_start(). My header.php looks like
>> this:
>>
>> #header.php
>> $cookie_life = (86400 * 7); // Cookies last f
At 2:58 PM -0800 3/3/11, Scott Baker wrote:
I have a global header.php file that sets up a bunch of stuff: DB,
global variables, and does session_start(). My header.php looks like this:
#header.php
$cookie_life = (86400 * 7); // Cookies last for seven days
session_set_cookie_params($cookie_life,
At 5:14 PM +0900 3/2/11, A-x-g wrote:
hi!
what I want to do is execute php script and don't wait for output.
found something like this
-
> /dev/null 2>&1 &`;
?>
text
--
I have a global header.php file that sets up a bunch of stuff: DB,
global variables, and does session_start(). My header.php looks like this:
#header.php
$cookie_life = (86400 * 7); // Cookies last for seven days
session_set_cookie_params($cookie_life,"/",".domain.com",true);
session_start();
Thi
In this case $mth, $day, $year is userinput that needs to be validated
before use. thanks for all help, the quotes proved helpfull
Med venlig hilsen
Rolf Brejner
Web-forlaget.dk
- Original Message -
From: "Richard Quadling"
To: "Alex"
Cc:
Sent: Thursday, March 03, 2011 2:13 PM
Subj
> As far as I was aware, if you're in the middle of writing to a file and
> another
> script was attempting to write to it, the OS would prevent that as you had an
> open lock on it.
>
> --
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
I guess I would have to test that.
--
PHP Gene
On Thu, Mar 3, 2011 at 12:59 PM, Paul M Foster wrote:
> On Thu, Mar 03, 2011 at 11:30:49AM -0700, Nathan Nobbe wrote:
>
> > Hey gang,
> >
> > (Yes Tedd, I like your style, when it pertains to how you address the
> list
> > :))
> >
> > I have a new curiosity that's arisen as a result of a new contr
On Thu, 2011-03-03 at 15:29 -0500, Steve Staples wrote:
> On Thu, 2011-03-03 at 13:23 -0700, Ashley M. Kirchner wrote:
> > > Write the file with a temporary name and extension. Once the file is
> > closed,
> > > change the name to the pattern your server is looking for. Once you finish
> > > proce
On Thu, Mar 3, 2011 at 12:23 PM, Steve Staples wrote:
> On Thu, 2011-03-03 at 11:30 -0700, Nathan Nobbe wrote:
> > Hey gang,
> >
> > (Yes Tedd, I like your style, when it pertains to how you address the
> list
> > :))
> >
> > I have a new curiosity that's arisen as a result of a new contract I'm
On Thu, 2011-03-03 at 13:23 -0700, Ashley M. Kirchner wrote:
> > Write the file with a temporary name and extension. Once the file is
> closed,
> > change the name to the pattern your server is looking for. Once you finish
> > processing it, either change the name again, or move it to a different
>
> Write the file with a temporary name and extension. Once the file is
closed,
> change the name to the pattern your server is looking for. Once you finish
> processing it, either change the name again, or move it to a different
> directory. Don't reuse the same file name, but add a numeric value
From: Ashley M. Kirchner
> Is there a clean or reliable way of checking to see if a
> file is still being written to before doing anything with it?
>
> Here's the scenario: we have a Samba share that we can copy
> files to (from within Windows or Macs). The server picks up
> the file and does so
Is there a clean or reliable way of checking to see if a
file is still being written to before doing anything with it?
Here's the scenario: we have a Samba share that we can copy
files to (from within Windows or Macs). The server picks up the file and
does so
On Thu, Mar 03, 2011 at 11:30:49AM -0700, Nathan Nobbe wrote:
> Hey gang,
>
> (Yes Tedd, I like your style, when it pertains to how you address the list
> :))
>
> I have a new curiosity that's arisen as a result of a new contract I'm
> working on, I'd like to bounce around some thoughts off the
From: Brian Dunning
> My merchant provider levies monthly fines based on
> how many of their security restrictions you fail to
> follow. I follow as many as are reasonably practical,
> but I think it's virtually impossible to follow them
> all, such as absurdly expensive (and probably unnecessary)
On Thu, 2011-03-03 at 11:30 -0700, Nathan Nobbe wrote:
> Hey gang,
>
> (Yes Tedd, I like your style, when it pertains to how you address the list
> :))
>
> I have a new curiosity that's arisen as a result of a new contract I'm
> working on, I'd like to bounce around some thoughts off the list and
That's a great suggestion. I will try this and report back. It's also been
suggested to me that I should have base64_encoded the encryptions before
storing them in MySQL, so I'll try this option at the same time.
On Mar 1, 2011, at 2:04 PM, Ashley Sheridan wrote:
> Onto the problem of the data
My merchant provider levies monthly fines based on how many of their security
restrictions you fail to follow. I follow as many as are reasonably practical,
but I think it's virtually impossible to follow them all, such as absurdly
expensive (and probably unnecessary) hardware. IMHO, some of the
Hey gang,
(Yes Tedd, I like your style, when it pertains to how you address the list
:))
I have a new curiosity that's arisen as a result of a new contract I'm
working on, I'd like to bounce around some thoughts off the list and see
what you folks think if interested.
The topic at hand is stored
On 3 March 2011 17:25, Ashley Sheridan wrote:
> "Jay Blanchard" wrote:
>
>>[snip]
>>What I don't get about the question is, is the document.ready()
>>shouldn't fire, until the page has completely loaded, and if the PHP
>>script is still running, the "document" shouldn't be "ready" yet,
>>should
>
"Jay Blanchard" wrote:
>[snip]
>What I don't get about the question is, is the document.ready()
>shouldn't fire, until the page has completely loaded, and if the PHP
>script is still running, the "document" shouldn't be "ready" yet,
>should
>it?
>[/snip]
>
>The document ready function fires once
[snip]
What I don't get about the question is, is the document.ready()
shouldn't fire, until the page has completely loaded, and if the PHP
script is still running, the "document" shouldn't be "ready" yet, should
it?
[/snip]
The document ready function fires once the DOM is loaded - which might
no
-Original Message-
From: Steve Staples [mailto:sstap...@mnsi.net]
Sent: Thursday, March 03, 2011 11:00 AM
To: php-general@lists.php.net
Subject: RE: [PHP] Delaying $(document).ready() in jQuery until php script
finish
On Thu, 2011-03-03 at 10:42 -0500, HallMarc Websites wrote:
>> Maybe
On Thu, 2011-03-03 at 10:42 -0500, HallMarc Websites wrote:
> Maybe I misread this and it seems to me he is asking how they could trigger
> the jQuery event after the necessary PHP script is called. Maybe it is being
> over-thought, have you tried placing the javascript call after the PHP
> script?
Maybe I misread this and it seems to me he is asking how they could trigger
the jQuery event after the necessary PHP script is called. Maybe it is being
over-thought, have you tried placing the javascript call after the PHP
script? Maybe wrap it in a conditional statement that isn't satisfied until
[snip]
Just one: ask on a jQuery list. Just because PHP is running
somewhere in the mix doesn't mean it's appropriate for this list.
[/snip]
Agreed. The list for jQuery is http://forum.jquery.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
On Thu, Mar 3, 2011 at 09:52, Richard Sharp wrote:
> I have been banging my head trying to figure out how to delay
> $(document).ready() command until my php script finish running and load
> data into a csv file. Any ideas
Just one: ask on a jQuery list. Just because PHP is running
somewher
I have been banging my head trying to figure out how to delay
$(document).ready() command until my php script finish running and load
data into a csv file. Any ideas
Thanks
Richard Sharp
Database Administrator
PH: 316-942-8604 ext 108
Tenderness is what love looks like in private, Ju
The second release candidates of 5.3.6 was just released for testing and
can be downloaded here:
http://downloads.php.net/johannes/php-5.3.6RC2.tar.bz2 (md5sum:
f870685b8715600e056d2dbb22920576)
http://downloads.php.net/johannes/php-5.3.6RC2.tar.gz (md5sum:
32e88f8a2dd1e756d386b7fe625c7e8b)
The w
On 3 March 2011 12:33, Alex wrote:
> Just a correction, dates in mysql are not strings by any means, they are
> stored in 3 bytes (date and time or 8 bytes for datetime) and that's nowhere
> enough for a string, however the representation of the date is a formatted
> string, so for all intents
Hi Webforlaget!
$thisdate is today?
$today = date('Y-m-d");
else
why, you dont use $thisdate as:
$thisdate = "$year-$mth-$day" ?
use quotes for $thisdate in sql query.
Regards.
Gerardo
On Thu, Mar 3, 2011 at 7:09 AM, Webforlaget.dk wrote:
> I need help to know Why this dont work ?
>
> ---
Just a correction, dates in mysql are not strings by any means, they are stored
in 3 bytes (date and time or 8 bytes for datetime) and that's nowhere enough
for a string, however the representation of the date is a formatted string, so
for all intents and purposes any comparison to a date field
Richard Quadling wrote:
On 3 March 2011 10:09, Webforlaget.dk wrote:
I need help to know Why this dont work ?
-
$thisdate =date("Y-m-d",mktime(0,0,0,$mth, $day, $year));
$sql = "SELECT id,case,startdate,enddate FROM table WHERE s
On 3 March 2011 10:09, Webforlaget.dk wrote:
> I need help to know Why this dont work ?
>
> -
>
> $thisdate =date("Y-m-d",mktime(0,0,0,$mth, $day, $year));
>
> $sql = "SELECT id,case,startdate,enddate FROM table WHERE
> startdate<=$th
I need help to know Why this dont work ?
-
$thisdate =date("Y-m-d",mktime(0,0,0,$mth, $day, $year));
$sql = "SELECT id,case,startdate,enddate FROM table WHERE
startdate<=$thisdate AND enddate>=$thisdate ORDER BY startdate";
--
37 matches
Mail list logo