RE: [PHP] XML Select

2005-04-08 Thread Robinson, Matthew
There's a few xml - array libraries out there which is probably the easier way to examine xml stuff. I use http://keithdevens.com/software/phpxml but there are many others. M -Original Message- From: Stefan [mailto:[EMAIL PROTECTED] Sent: 08 April 2005 13:26 To:

RE: [PHP] Some questions about if and isset.

2005-01-31 Thread Robinson, Matthew
Can we see some sample data? An example of what $variable and $constant are would help. A quick glance at the code I'd have: if (isset($variable) { if ($variable $contstant) { stuff } elseif ($variable $constant) { more

RE: [PHP] regex help

2005-01-14 Thread Robinson, Matthew
Do you have the example regex so far? I'd suggest maybe b[^r] might just do what you want -Original Message- From: Jason Morehouse [mailto:[EMAIL PROTECTED] Sent: 13 January 2005 21:07 To: php-general@lists.php.net Subject: [PHP] regex help Hello, I normally can take a bit of regex

RE: [PHP] unable to execute external program

2005-01-13 Thread Robinson, Matthew
I think you've answered your own question. Check the permissions on the file. Can it be executed by the other user? Is it in the path? What error do you see in the log? ls -l chmod might just be your friends ;-) -Original Message- From: Sagar C Nannapaneni [mailto:[EMAIL PROTECTED]

RE: [PHP] Using encrypted passwords

2004-12-23 Thread Robinson, Matthew
And the good Lord saw that clear was bad and gave us ssh... If you care that much build an ssh tunnel to the db server and talk over that. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 20 December 2004 17:29 To: php-general@lists.php.net Subject: Re: [PHP] Using

RE: [PHP] File Locking during *other* file operations

2004-12-23 Thread Robinson, Matthew
fail for a reason and you should find that reason before you unlock and potentially break something. M -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 20 December 2004 18:26 To: Robinson, Matthew Cc: Michael Sims; php-general Subject: RE: [PHP] File Locking during

RE: [PHP] converting whole or tenth prices to double decimal

2004-12-23 Thread Robinson, Matthew
sprintf should also meet your needs although not as well as money_format() -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: 23 December 2004 12:31 To: php-general@lists.php.net Subject: Re: [PHP] converting whole or tenth prices to double decimal Hello Brian,

RE: [PHP] File Locking during *other* file operations

2004-12-20 Thread Robinson, Matthew
I use this code, Not all my own, some from the php manual (probably most of it in fact) I lock the file as filename.lock so that I can muck about with it completely and then unlock the .lock and remove it. M function LockFile($file) { $LockFile = $file . .lock;#

RE: [PHP] Re: Hostname

2004-12-15 Thread Robinson, Matthew
?php $Hostname = exec('hostname'); print $Hostname; ? -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED] Sent: 15 December 2004 16:58 To: 'Jason Motes'; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Hostname In earlier versions of PHP, you could use the

RE: [PHP] Hostname

2004-12-15 Thread Robinson, Matthew
$_SERVER['SERVER_NAME'] 'SERVER_NAME' The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host. -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: 15

RE: [PHP] How can I fix that

2004-12-13 Thread Robinson, Matthew
I've just had this exact problem. The solution as far as I found is one of the following: 1. Keep a $_SESSION going and set a flag, then on a re-post you can check the flag to see if it's set and hopefully spot the re-post. 2. Check to see if what you're about to enter is already there,

[PHP] Referencing Multi Dimensional Arrays

2004-12-01 Thread Robinson, Matthew
Hi, I've kind of solved this question already using recursion but I recon (in the grand tradition) that someone has a better solution! I have an multi dimensional array that is of variable depth, a snippet is shown below. The problem is that I don't know how deep the array goes as any

RE: [PHP] Referencing Multi Dimensional Arrays

2004-12-01 Thread Robinson, Matthew
lol, perhaps embedded a bit too deep in my pre-amble. My question is simply what's a good way to reference a given array entry when you don't know where it is or how deep the array is. I can do a multi dimensional array search and return an array of keys to locate the item, I then want to use that

RE: [PHP] remove first character in text file

2004-11-24 Thread Robinson, Matthew
?php $email = '[EMAIL PROTECTED]@[EMAIL PROTECTED]'; $email = preg_replace('/^%%+/','%',$email); print $email; ? -Original Message- From: Dustin Krysak [mailto:[EMAIL PROTECTED] Sent: 24 November 2004 09:53 To: PHP Subject: Re: [PHP] remove first character in text file Just want to