[FX.php List] Need help with implode errors.... please

Steve Winter steve at bluecrocodile.co.nz
Wed Sep 5 01:00:15 MDT 2007


Larry,

Are you sure that $_POST['Language_you_translate_from'] exists at the time
that your invoke this command...?

It looks to me like the new setup may have different error reporting
parameters set, so these errors do exist on your local system, they are just
not being reported. Check the respective .ini files for error reporting...

You'll likely find that on the Linux machine the .ini there has something
like;

  error_reporting = E_ALL

where as on your machine it will have something like

  error_reporting  = E_ALL & ~E_NOTICE

To overcome this type of thing I always make sure that on my staging server
E_ALL is set, that way I know that no matter what environment my solutions
go into they won't generate errors...

To actually solve this, and to answer your question properly (rather than
just masking it by changing the error reporting on the remote server) you
probably need to verify that $_POST['Language_you_translate_from'] is set,
something like;

if(isset($_POST['Language_you_translate_from'])
  'Language_you_translate_from[]'=>implode( "\r",$_POST 
['Language_you_translate_from'] ),

Let us know how you get on...

Cheers
Steve

-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Larry Schultz
Sent: Wednesday, 5 September 2007 3:12 a.m.
To: FX.php Discussion List
Subject: [FX.php List] Need help with implode errors.... please

I'm getting these  errors on my clients test site.
Warning: implode(): Bad arguments. in

I'm getting one of these errors for each implode statement in my  
results page. They look like this:

'Language_you_translate_from[]'=>implode( "\r",$_POST 
['Language_you_translate_from'] ),

My own test setup does not throw any errors. My test site:
Mac OSX 10.4.10
Apache
One box running Apache, and FMserver, and the WPE.

No problems with this setup


The client is using
Linux  to host the php
WPE on Mac OSX
FMServer on XP sp2

Does anyone have any ideas as to why these  implode errors are  
showing on the Linux/Mac/windows setup.

I'm wondering if my use of the "\r" is failing.

TIA,

Larry Schultz
             Mac Edge Corporation
Specializing in Filemaker Pro Relational Database Solutions
                             for Mac/Windows/NT

FBA Member


larry at macedge.net
larryschultz1 at mac.com
408-996-0831
510-502-4365

           -------------Take A Deep Breath-------------

  "I quickly discovered that Apple, Inc., isn’t just a company.  It’s  
the world’s only publicly traded religion. "
Brett Arends, Boston Herald Finance Columnist  December 2005


_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.485 / Virus Database: 269.13.3/986 - Release Date: 3/09/2007
9:31 a.m.
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.485 / Virus Database: 269.13.3/986 - Release Date: 3/09/2007
9:31 a.m.
 




More information about the FX.php_List mailing list