[PHP] Is fwrite atomic or not?

2003-08-06 Thread Herouth Maoz
I've seen answers both ways in the archive of this list, and I wonder what is true. Suppose I open a file in append mode - like a log file. Two different HTTP connections fire up two different PHP processes which both open the same file. Then they both do an fwrite( $fp, some string ). Is the

[PHP] Re: global $HTTP_SESSION_VARS not global ???

2001-09-10 Thread Herouth Maoz
On 2001 September? 10 ,Monday 18:56, Thomas Watson wrote: ?php session_start(); session_register(test); $test = something; function foo() { print($HTTP_SESSION_VARS[test] . br /\n); } foo(); print($HTTP_SESSION_VARS[test] . br /\n); ? a href=?=$PHP_SELF?Click here/a

[PHP] Re: multiple submit buttons

2001-08-29 Thread Herouth Maoz
On Wednesday 29 August 2001 10:09, Justin French wrote: I noticed this chunk of code in a site the other day: input type=Submit name=btn value=Yes input type=Submit name=btn value=No My GUESS is that if i click the Yes button, I magically get $btn = Yes as a var is the receieving PHP

[PHP] Problem: Sybase, PHP and multiple result sets

2001-08-15 Thread Herouth Maoz
I have started working with Sybase lately, and it has come to my knowledge that a single query can return multiple result sets in Sybase, especially when using stored procedures. Now, in ASP (sorry...), there are calls that allow retrieving the next result set from the current result set. So

[PHP] Re: php upload on MAC

2001-08-15 Thread Herouth Maoz
Jason wrote: I wrote a script that clients can upload files to our server and download files but there is one small problem. Mac users can't upload all of their files. I am guess there is no file extensions. Anyone have any ideas? Jason Well, in Mac, there are indeed no mandatory file

Re: [PHP] Problem: Sybase, PHP and multiple result sets

2001-08-15 Thread Herouth Maoz
On Wednesday 15 August 2001 10:07, Warren Vail wrote: The ability to select a set from a previously selected set is possible in Sybase because the database supports creation of temporary tables and the select insert. No, you seem to have missed my point entirely. So I'll explain in a little