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: php-general@lists.php.
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 s
Do you have the example regex so far?
I'd suggest maybe 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 fun, but not this time.
Simple enough, in theory... I need to match (count) all of the
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]
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,
Thurs
lock fails. I think
that locks 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:
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 en
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";# Lo
-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 $HOSTNAME global
> > variable to get the server/machine name that is runn
$_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
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, chances
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
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 entr
-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 add to this with a little more info
my text file is a list of email addresses with a "%" separating them.
For
14 matches
Mail list logo