[PHP] Re: Re: Getting the process ID

2005-03-25 Thread Joshua Beall
> But a double-submit is likely to come from separate Apache processes, so > I don't see where the pid comes into the picture. If I reload a page and > resend the post data, that POST request is going to be processed a second > time most likely by a different httpd process. What you need to

[PHP] Re: Storing data structires in DB

2005-03-24 Thread Joshua Beall
"Joshua Beall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You should look into the WDDX functions - http://php.net/wddx/ - they give > you an XML document that you can edit by hand much more easily than the > bytestream you get from serialize. Howeve

[PHP] Re: Getting the process ID

2005-03-24 Thread Joshua Beall
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Joshua Beall wrote: >> I am doing some work where I want to do locking, and prevent scripts from >> running in parallel. I see that I could use the semaphore mechanism, but >>

[PHP] Re: Storing data structires in DB

2005-03-24 Thread Joshua Beall
"GamblerZG" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Output of serialize() is barely readable and definetely is not suited for > manual editing. > > It is quite simple to create var_export() clone that does not add junk to > it's output. But then I would need to exec() the s

[PHP] Getting the process ID

2005-03-24 Thread Joshua Beall
Hi All, I am doing some work where I want to do locking, and prevent scripts from running in parallel. I see that I could use the semaphore mechanism, but I'd like for my code to be portable, and that extension is not enabled in many places. I need some way for a process to uniquely identify

[PHP] Re: PHP Security

2004-12-08 Thread Joshua Beall
"Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The other day a post came across one of those mailing lists discussing > PHP security. One of the posters was describing how insecure PHP's > file upload functionality is and went on to explain a simple method of > attach

[PHP] Re: PEAR performance/overhead

2004-12-08 Thread Joshua Beall
"David Dickson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I was told that PEAR has too much overhead to be considered for a large >scale site. Does any one feel the same? Is this an outrageous comment? I >would like to hear comments from people who are using PEAR, or people w

[PHP] Re: Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA']isstill set

2004-02-13 Thread Joshua Beall
"Adam Bregenzer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Honestly, I didn't see anything glaringly wrong so I deftly skirted your > problem by posting code that I find works. :) Hmm, I would probably have done the same :-) > One part that may be an issue is you are using eac

[PHP] Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] isstill set

2004-02-13 Thread Joshua Beall
"Adam Bregenzer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Having a function to undo magic quotes can be very useful if you > distribute your application. Here is what I use, just call > disable_magic_quotes(). It should not do any damage if magic_quotes is > already disabled.

[PHP] $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] is still set

2004-02-13 Thread Joshua Beall
Hi All, I originally posted this on 2004-02-09, to alt.comp.lang.php, alt.php, and comp.lang.php, with the followup-to header set to comp.lang.php. Nobody had any thoughts, so I thought I would post here, just in case. I want to turn off magic quotes. I realize in retrospect that using a .htacc