[PHP] Getting local domain name in CLI

2002-08-29 Thread Geranium
I need to get the domain name of the local machine. I'm running a CLI script in PHP 4.3-cvs (on OpenBSD) so I have no HTTP or other global vars to look at. The posix_uname command doesn't include the domain on non-GNU OSs. I can get the hostname, but not the domain. Can I get it through some

[PHP] sysvshm examples?

2002-08-29 Thread Geranium
Can anyone point me at some examples of using sysv shared memory, particularly for passing values between a mod_php script and a PHP CLI process? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and Transactions with InnoDB

2002-08-29 Thread Geranium
I could use some practical tips on doing transactions with InnoDB tables in MySQL. I want to grab and lock a record and do a whole load of related stuff, then make sure everything is updated in a consistent way, something like this skeleton: BEGIN SELECT * from blah WHERE something=n FOR

Re: [PHP] PHP and Transactions with InnoDB

2002-08-29 Thread Geranium
In article [EMAIL PROTECTED], Miles Thompson [EMAIL PROTECTED] wrote: I've not worked with InnoDb, but given that the web is a stateless space and all kinds of things can happen, I'd be very reluctant to lock a record until the very moment I'm updating it. In other words, when I have my

[PHP] Re: Getting local domain name in CLI

2002-08-29 Thread Geranium
In article [EMAIL PROTECTED], Philip Hallstrom [EMAIL PROTECTED] wrote: What about... $hostname = `/bin/hostname`; or something along those lines... Well that's rather the kind of thing I was wanting to avoid - it's much akin to rummaging in /etc. the hostname command gives me my

[PHP] sysvshm examples?

2002-10-07 Thread Geranium
Can anyone point me at some examples of using sysv shared memory, particularly for passing values between a mod_php script and a PHP CLI process? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Signal handling

2002-10-07 Thread Geranium
Is signal handling broken in PHP 4.3-cvs? I've set up some handlers as per the docs, but nothing happens when I send appropriate signals. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Building PHP extensions for MacOS X

2002-10-24 Thread Geranium
I need to build a PHP extension that also talks to parts of the MacOS X API/frameworks. I could build simple, generic extensions in gcc, but for OS X APIs, I need to use something a bit bigger. Can anybody give me any tips of how to build PHP extensions in CodeWarrior or ProjectBuilder on MacOS

Re: [PHP] spawing new PHP process

2002-11-27 Thread Geranium
In article [EMAIL PROTECTED], Robert McPeak [EMAIL PROTECTED] wrote: I have other situations where I would like to somehow spawn a new php process so that the page loads quickly and my user doesn't get frustrated or confused. Hang on, there's lots of talking around the point here. This is not