Re: [PHP] There has to be a better way!!

2010-07-12 Thread Richard Quadling
On 11 July 2010 02:26, Jason Pruim li...@pruimphotography.com wrote:

 On Jul 10, 2010, at 12:03 PM, Ashley Sheridan wrote:

 On Sat, 2010-07-10 at 11:58 -0400, Jason Pruim wrote:

 Okay so I've been fighting with this for awhile now and haven't found
 a better way yet

 What I want to do, is I have a small portion of my website included
 into a template. It is displaying hosting plans so on the main site
 index.php I want it to display a little bit of text (Same as on the
 main hosting page) and just 1 random hosting plan. then if they click
 on that plan and go into the main hosting section, I want them to see
 ALL the hosting plans.

 Here's the code that I'm using:

 if($_SERVER['PHP_SELF'] = /index.php) {
    $sql = SELECT * FROM `hosting` ORDER BY RAND() LIMIT 1;
 }else{
    $sql = SELECT * FROM `hosting` ORDER BY `hostingSort` ASC;

 }

 Now... I know there MUST be a better way to do it but I can't see the
 tree's through the forest.

 Any other way I could do it?

 I'm avoiding having lots of duplicate code/text on my pages.





 To avoid duplicating code, use an include file. If you already have some
 form of include (for a DB for example) then you can include your other
 includes in that.

 Also, not sure if it was a type in your email, but I think you want to
 use == in your if statement there, instead of = ;)

 Hey Ash,

 I may not have explained it properly :)

 I have 2 files... hosting.php and hostingsmall.php which have the EXACT same
 content in them other then the SQL statement. Hostingsmall.php has a LIMIT
 1 at the end...

 What I want to do is be able to get rid of hostingsmall.php which is
 currently included on my main page and run it all off of hosting.php but
 still be able to limit the query at the front page...

 the $_SERVER['PHP_SELF'] seems to be doing the trick... Just wanted to find
 a better way since I've heard you should trust PHP_SELF...

 But if that's my best bet since it's working I can stick with it :)

If the only difference between the 2 files is the SQL statement, then
maybe you could ...

?php
// hosting.php

// Define SQL
$sql = ' ... ';

// Include template
include 'template.php';
?

And the same for hostingsmall.php, except you have a different SQL statement.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] There has to be a better way!!

2010-07-10 Thread Jason Pruim
Okay so I've been fighting with this for awhile now and haven't found  
a better way yet


What I want to do, is I have a small portion of my website included  
into a template. It is displaying hosting plans so on the main site  
index.php I want it to display a little bit of text (Same as on the  
main hosting page) and just 1 random hosting plan. then if they click  
on that plan and go into the main hosting section, I want them to see  
ALL the hosting plans.


Here's the code that I'm using:

if($_SERVER['PHP_SELF'] = /index.php) {
$sql = SELECT * FROM `hosting` ORDER BY RAND() LIMIT 1;
}else{
$sql = SELECT * FROM `hosting` ORDER BY `hostingSort` ASC;

}

Now... I know there MUST be a better way to do it but I can't see the  
tree's through the forest.


Any other way I could do it?

I'm avoiding having lots of duplicate code/text on my pages.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] There has to be a better way!!

2010-07-10 Thread Ashley Sheridan
On Sat, 2010-07-10 at 11:58 -0400, Jason Pruim wrote:

 Okay so I've been fighting with this for awhile now and haven't found  
 a better way yet
 
 What I want to do, is I have a small portion of my website included  
 into a template. It is displaying hosting plans so on the main site  
 index.php I want it to display a little bit of text (Same as on the  
 main hosting page) and just 1 random hosting plan. then if they click  
 on that plan and go into the main hosting section, I want them to see  
 ALL the hosting plans.
 
 Here's the code that I'm using:
 
 if($_SERVER['PHP_SELF'] = /index.php) {
  $sql = SELECT * FROM `hosting` ORDER BY RAND() LIMIT 1;
 }else{
  $sql = SELECT * FROM `hosting` ORDER BY `hostingSort` ASC;
 
 }
 
 Now... I know there MUST be a better way to do it but I can't see the  
 tree's through the forest.
 
 Any other way I could do it?
 
 I'm avoiding having lots of duplicate code/text on my pages.
 
 
 


To avoid duplicating code, use an include file. If you already have some
form of include (for a DB for example) then you can include your other
includes in that.

Also, not sure if it was a type in your email, but I think you want to
use == in your if statement there, instead of = ;)

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] There has to be a better way!!

2010-07-10 Thread Jason Pruim


On Jul 10, 2010, at 12:03 PM, Ashley Sheridan wrote:


On Sat, 2010-07-10 at 11:58 -0400, Jason Pruim wrote:


Okay so I've been fighting with this for awhile now and haven't found
a better way yet

What I want to do, is I have a small portion of my website included
into a template. It is displaying hosting plans so on the main site
index.php I want it to display a little bit of text (Same as on the
main hosting page) and just 1 random hosting plan. then if they click
on that plan and go into the main hosting section, I want them to see
ALL the hosting plans.

Here's the code that I'm using:

if($_SERVER['PHP_SELF'] = /index.php) {
$sql = SELECT * FROM `hosting` ORDER BY RAND() LIMIT 1;
}else{
$sql = SELECT * FROM `hosting` ORDER BY `hostingSort` ASC;

}

Now... I know there MUST be a better way to do it but I can't see the
tree's through the forest.

Any other way I could do it?

I'm avoiding having lots of duplicate code/text on my pages.






To avoid duplicating code, use an include file. If you already have  
some

form of include (for a DB for example) then you can include your other
includes in that.

Also, not sure if it was a type in your email, but I think you want to
use == in your if statement there, instead of = ;)


Hey Ash,

I may not have explained it properly :)

I have 2 files... hosting.php and hostingsmall.php which have the  
EXACT same content in them other then the SQL statement.  
Hostingsmall.php has a LIMIT 1 at the end...


What I want to do is be able to get rid of hostingsmall.php which is  
currently included on my main page and run it all off of hosting.php  
but still be able to limit the query at the front page...


the $_SERVER['PHP_SELF'] seems to be doing the trick... Just wanted to  
find a better way since I've heard you should trust PHP_SELF...


But if that's my best bet since it's working I can stick with it :)




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] there has to be a better way...

2003-10-23 Thread Walter Torres
 -Original Message-
 From: Colin Kettenacker [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 12:53 AM
 To: jsWalter; [EMAIL PROTECTED]
 Subject: Re: [PHP] there has to be a better way...


 Hi Walter,

 You may want to look into PEAR's config package. It does pretty
 much all you
 have listed here and a lot more. I just started looking into it today.

Thanks Colin.

I saw that it, read it, played with it.

It was just way to big a clunky for what I was looking to do.

I have what need to make this work.

I was just hoping to have a better method of reading the file and ignoring
the blank lines and the commented lines.

I just have this thing about double level IF statements.

Thanks.

Walter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] there has to be a better way...

2003-10-23 Thread Raquel Rice
On Thu, 23 Oct 2003 01:04:55 -0500
Walter Torres [EMAIL PROTECTED] wrote:

  -Original Message-
  From: Colin Kettenacker [mailto:[EMAIL PROTECTED]
 
  Hi Walter,
 
  You may want to look into PEAR's config package. It does pretty
  much all you
  have listed here and a lot more. I just started looking into it
  today.
 
 Thanks Colin.
 
 I saw that it, read it, played with it.
 
 It was just way to big a clunky for what I was looking to do.
 
 I have what need to make this work.
 
 I was just hoping to have a better method of reading the file and
 ignoring the blank lines and the commented lines.
 
 I just have this thing about double level IF statements.
 
 Thanks.
 
 Walter
 

Is there a problem with using your text editor to change all the #
to ; and then using parse_ini_file()?

--
Raquel

I never did give anybody hell. I just told the truth, and they
thought it was hell.
  --Harry S Truman

--
Raquel

I never did give anybody hell. I just told the truth, and they
thought it was hell.
  --Harry S Truman

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] there has to be a better way...

2003-10-22 Thread jsWalter
I need to read (write comes later) from a config file that we used to handle
manually.

I'm getting lazy, so I'm writing a web interface for this.

What I have does this...
  - open a given file
  - dump entire file into a string
  - explode string into an array at the EOL marker
  - walk down this new array
  - decide if there is anything in current element
  - decide if current line is a comment
  - split line at '=' into 2 variables
  - add new key and value from these variables back into array
  - kill original array element

There must be a better way to do this.

All this seems a bit over kill to me.

Does anyone have any ideas on this?

Thanks

Walter

This is what I have...

?php

$config = $list . '/home/walter/vmd/config';

// Open the file
$handle = fopen ($config, r);

// Read entire file into var
$content = fread($handle, filesize($config));

// convert var into array and explode file via line break
$content = split(\r\n, $content);

// close file
fclose($handle);

// Loop through file contents array
foreach ($content as $i = $value)
{
   // If we have any data in this line
   if (! empty ($value))
   {
  // If this line is not a comment
  if ( $value{0} != '#')
  {
 list($a, $b) = split(=, $value);
 $content[$a] = $b;
  }

  // kill original array element
  unset($content[$i]);
   }
}

// show me what I have
echo 'pre';
echo print_r($content);
echo '/pre';

?

# Sample config file data, just 2 lines from the file...
#
# The Personal Name of the list, used in outgoing headers.
# If empty, default is the same as the list's username.
# if explicitly `false', then it is redefined empty.
LIST_NAME=RMT Working Group

# The address of the list's admin or owner.
# if explicitly `false', then it is redefined empty.
[EMAIL PROTECTED]

...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] there has to be a better way...

2003-10-22 Thread - Edwin -
On Wed, 22 Oct 2003 03:10:44 -0500
jsWalter [EMAIL PROTECTED] wrote:

[snip]
 There must be a better way to do this.
[/snip]

  http://www.php.net/manual/en/function.parse-ini-file.php ?

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] there has to be a better way...

2003-10-22 Thread Nick JORDAN
jsWalter [EMAIL PROTECTED] wrote on 22/10/2003 09:10:44:

 I need to read (write comes later) from a config file that we used to 
handle
 manually.

 There must be a better way to do this.

Check out the parse_ini_file() function.

Nick

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] there has to be a better way...

2003-10-22 Thread Daevid Vincent
Here is a snippet from my dhcp web page found on my site below... Not
exactly what you want, but could help you start...

// read in the dhcp_map.ini file to map MAC addresses to images
$mapFile = ./dhcp_map.ini;
if( $fp = @fopen($mapFile, r) )
{
while( $line = fgets($fp, 1024) )
if ($line{0} != #) $tempMap .= $line;  // strip
out # comments
} else echo ERROR: Can't read .$mapFile.BR;
fclose ($fp);
$map = explode(\n, $tempMap);
//print_r($map);
for($i = 0; $i  count($map); $i++)
{
list($mac, $image, $name) = preg_split(/\s/,$map[$i], -1,
PREG_SPLIT_NO_EMPTY);
//if ( array_key_exists($mac, $machine))
$machine[$mac]-setImage($image);
if ( isset($machine[$mac]) )
$machine[$mac]-setImage($image);
if ( isset($machine[$mac])  $name !=  
$machine[$mac]-getName() == ) $machine[$mac]-name = $name;
}
unset($tempMap);
unset($map);


#  dhcp_map.ini file
#  MAC ADDRESS: GIF IMAGE:  NAME:
00:09:12:86:48:54   linux   LINUX
00:0B:AD:31:AA:A6   tivoThad's
00:0B:AD:08:38:C3   tivoDaevid's



Daevid Vincent
http://daevid.com
  

 -Original Message-
 From: jsWalter [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 22, 2003 1:11 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] there has to be a better way...
 
 I need to read (write comes later) from a config file that we 
 used to handle
 manually.
 
 I'm getting lazy, so I'm writing a web interface for this.
 
 What I have does this...
   - open a given file
   - dump entire file into a string
   - explode string into an array at the EOL marker
   - walk down this new array
   - decide if there is anything in current element
   - decide if current line is a comment
   - split line at '=' into 2 variables
   - add new key and value from these variables back into array
   - kill original array element
 
 There must be a better way to do this.
 
 All this seems a bit over kill to me.
 
 Does anyone have any ideas on this?
 
 Thanks
 
 Walter
 
 This is what I have...
 
 ?php
 
 $config = $list . '/home/walter/vmd/config';
 
 // Open the file
 $handle = fopen ($config, r);
 
 // Read entire file into var
 $content = fread($handle, filesize($config));
 
 // convert var into array and explode file via line break
 $content = split(\r\n, $content);
 
 // close file
 fclose($handle);
 
 // Loop through file contents array
 foreach ($content as $i = $value)
 {
// If we have any data in this line
if (! empty ($value))
{
   // If this line is not a comment
   if ( $value{0} != '#')
   {
  list($a, $b) = split(=, $value);
  $content[$a] = $b;
   }
 
   // kill original array element
   unset($content[$i]);
}
 }
 
 // show me what I have
 echo 'pre';
 echo print_r($content);
 echo '/pre';
 
 ?
 
 # Sample config file data, just 2 lines from the file...
 #
 # The Personal Name of the list, used in outgoing headers.
 # If empty, default is the same as the list's username.
 # if explicitly `false', then it is redefined empty.
 LIST_NAME=RMT Working Group
 
 # The address of the list's admin or owner.
 # if explicitly `false', then it is redefined empty.
 [EMAIL PROTECTED]
 
 ...
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] there has to be a better way...

2003-10-22 Thread jsWalter
- Edwin - [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Wed, 22 Oct 2003 03:10:44 -0500
 jsWalter [EMAIL PROTECTED] wrote:

 [snip]
  There must be a better way to do this.
 [/snip]

   http://www.php.net/manual/en/function.parse-ini-file.php ?

thanks.

But, my concern with that is my config files use '#' for comment lines, not
';'

Is there a way around this?

Walter




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] there has to be a better way...

2003-10-22 Thread jsWalter

Daevid Vincent [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Here is a snippet from my dhcp web page found on my site below... Not
 exactly what you want, but could help you start...

thanks!


 // read in the dhcp_map.ini file to map MAC addresses to images
 $mapFile = ./dhcp_map.ini;
 if( $fp = @fopen($mapFile, r) )
 {
 while( $line = fgets($fp, 1024) )

this pulls out 1024 bytes of data form the file. right?

or does this pull UPTO 1024 bytes of data or the EOL, which ever is first?


 if ($line{0} != #) $tempMap .= $line;  // strip
 out # comments
 } else echo ERROR: Can't read .$mapFile.BR;
 fclose ($fp);
 $map = explode(\n, $tempMap);

OK. $tempMap is a string var. Each line of the file has a /n delimiting it.

Now make an array of these line.

Right?

 for($i = 0; $i  count($map); $i++)
 {
 list($mac, $image, $name) = preg_split(/\s/,$map[$i], -1,
 PREG_SPLIT_NO_EMPTY);

walk down the map array.

split each element on the SPACE, but don't deal with blank lines

...

seems almost the same.

nice use of PREG_SPLIT. I guess that helps with the BLANK lines.

if fgets() onlt pulls out so much data, not to EOL, why use it?

If I understand right, if I pull out 1028 of data, the '#' on each line
could be anywhere in that buffer, not just at the first character.

That's why I pulled in the entire file into a string var and then exploded
it into an array split on EOL characters.

Am I missing something?

Thanks for your sample.

Walter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] there has to be a better way...

2003-10-22 Thread Daevid Vincent
 -Original Message-
 From: Walter Torres [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 22, 2003 3:27 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] there has to be a better way...
 
 
 Daevid Vincent [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Here is a snippet from my dhcp web page found on my site 
 below... Not
  exactly what you want, but could help you start...
 
 thanks!
 
 
  // read in the dhcp_map.ini file to map MAC addresses to images
  $mapFile = ./dhcp_map.ini;
  if( $fp = @fopen($mapFile, r) )
  {
  while( $line = fgets($fp, 1024) )
 
 this pulls out 1024 bytes of data form the file. right?
 or does this pull UPTO 1024 bytes of data or the EOL, which 
 ever is first?
 if fgets() onlt pulls out so much data, not to EOL, why use it?

Yes. Keeps getting 1024 byte chunks until EOL as per the documentation.

 
  if ($line{0} != #) $tempMap .= $line;  // strip
  out # comments
  } else echo ERROR: Can't read .$mapFile.BR;
  fclose ($fp);
  $map = explode(\n, $tempMap);
 
 Now make an array of these line. Right?

Ignore comment lines (#) 
Yes, explode the entire file in to one line per array key.

  for($i = 0; $i  count($map); $i++)
  {
  list($mac, $image, $name) = preg_split(/\s/,$map[$i], -1,
  PREG_SPLIT_NO_EMPTY);
 
 walk down the map array.
 split each element on the SPACE, but don't deal with blank lines

Take each line/key of the array and split it into another array of 'stuff'
Ignore any spaces between chunks of data. If you look at the data file,
you'll understand.

 seems almost the same.
 nice use of PREG_SPLIT. I guess that helps with the BLANK lines.

It helps with blank space between MAC, image and name columns on a single
line.

 If I understand right, if I pull out 1028 of data, the '#' on 
 each line
 could be anywhere in that buffer, not just at the first character.

Yeah, in my case, I only count a # at the beginning of a line AKA $line{0}

 That's why I pulled in the entire file into a string var and 
 then exploded it into an array split on EOL characters.
 
 Am I missing something?
 
 Thanks for your sample.

Np.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] there has to be a better way...

2003-10-22 Thread John W. Holmes
jsWalter wrote:

I need to read (write comes later) from a config file that we used to handle
manually.
I'm getting lazy, so I'm writing a web interface for this.
Don't know if someone said this or not, but why not just use 
parse_ini_file() ?

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals  www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] there has to be a better way...

2003-10-22 Thread Curt Zirzow
* Thus wrote jsWalter ([EMAIL PROTECTED]):
 I need to read (write comes later) from a config file that we used to handle
 manually.
 
 I'm getting lazy, so I'm writing a web interface for this.
 
 What I have does this...
   - open a given file
   - dump entire file into a string
   - explode string into an array at the EOL marker
   - walk down this new array

Instead of doing these last three, just walk through each line of
the file.  These tasks are just adding extra overhead.

   - decide if there is anything in current element
   - decide if current line is a comment
   - split line at '=' into 2 variables
   - add new key and value from these variables back into array

We can kill these four conditions in two lines of code. (see below)

   - kill original array element

Dont need this if we are reading directly from the file.

 
 There must be a better way to do this.

Pehraps something like this:

?php
$fp = fopen('test.ini', 'r');
while (! feof($fp) ) {
$line = fgets($fp, 1024);

/* dont need this trim, only used for the print line */
$line = trim($line);
print [$line]\n;

if (preg_match('/^
(?!\#)(?#No # in the beginning, not
   needed but makes pcre skip it,
   much faster if line is a comment)
 (\w+) (?# The key must be a word )
 \s*=\s*   (?# Allow space on both sides of =)
 (?(?=)   (?# If quoted )
([^]*)  (?# Grab all but quoted)
 | (?# else )
(\w+)  (?# grab the word )
 )
 /x', $line, $matches) ) {
//print_r($matches);
$content[$matches[1]] = ($matches[2]? $matches[2]: $matches[3]);

}
}
print_r($content);
?

Ok, i lied it was more than two lines, but I made the regular
expression readable (if you can call it that :) A demo of this can
be seen here:

  http://zirzow.dyndns.org/html/php/tests/array/parseini.php

HTH,

Cheers

Curt
-- 
My PHP key is worn out

  PHP List stats since 1997: 
http://zirzow.dyndns.org/html/mlists/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] there has to be a better way...

2003-10-22 Thread Colin Kettenacker
Hi Walter,

You may want to look into PEAR's config package. It does pretty much all you
have listed here and a lot more. I just started looking into it today. I
haven't looked closely at the code so I don't know how efficiently it
handles everything it does but it may give you some ideas. As far as I tell
it can handle Generic Config files, .ini files, XML config files and more.

http://pear.php.net/package/Config
http://pear.php.net/manual/en/package.configuration.php

ck
-- 
Cheap Domain Registration | Web Hosting | Email Packages | + more
Fantastic prices -- Even better service.
http://www.hosttohost.net


jsWalter [EMAIL PROTECTED] on 10/22/03 1:10 AM wrote:

 I need to read (write comes later) from a config file that we used to handle
 manually.
 
 I'm getting lazy, so I'm writing a web interface for this.
 
 What I have does this...
 - open a given file
 - dump entire file into a string
 - explode string into an array at the EOL marker
 - walk down this new array
 - decide if there is anything in current element
 - decide if current line is a comment
 - split line at '=' into 2 variables
 - add new key and value from these variables back into array
 - kill original array element
 
 There must be a better way to do this.
 
 All this seems a bit over kill to me.
 
 Does anyone have any ideas on this?
 
 Thanks
 
 Walter
 
 This is what I have...
 
 ?php
 
 $config = $list . '/home/walter/vmd/config';
 
 // Open the file
 $handle = fopen ($config, r);
 
 // Read entire file into var
 $content = fread($handle, filesize($config));
 
 // convert var into array and explode file via line break
 $content = split(\r\n, $content);
 
 // close file
 fclose($handle);
 
 // Loop through file contents array
 foreach ($content as $i = $value)
 {
 // If we have any data in this line
 if (! empty ($value))
 {
 // If this line is not a comment
 if ( $value{0} != '#')
 {
 list($a, $b) = split(=, $value);
 $content[$a] = $b;
 }
 
 // kill original array element
 unset($content[$i]);
 }
 }
 
 // show me what I have
 echo 'pre';
 echo print_r($content);
 echo '/pre';
 
 ?
 
 # Sample config file data, just 2 lines from the file...
 #
 # The Personal Name of the list, used in outgoing headers.
 # If empty, default is the same as the list's username.
 # if explicitly `false', then it is redefined empty.
 LIST_NAME=RMT Working Group
 
 # The address of the list's admin or owner.
 # if explicitly `false', then it is redefined empty.
 [EMAIL PROTECTED]
 
 ...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php