[FX.php List] Switch of web host - HTML special chars strippedfrom FX output (FMU6)

Leo R. Lundgren leo at finalresort.org
Mon Jun 1 08:50:14 MDT 2009


Ben,

Have a look at http://lists.macosforge.org/pipermail/macports-users/2008-December/012834.html 
  .


1 jun 2009 kl. 14.53 skrev Ben Bradley:

> Dang, sorry. Copy and pasted without thinking.
>
> NEW: http://dealer-world.net/phpinfo.php
> OLD: http://dealer-world.com/phpinfo.php
>
>
> Thanks, B
>
>
> -----Original Message-----
> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Leo R.
> Lundgren
> Sent: 01 June 2009 13:51
> To: FX.php Discussion List
> Subject: Re: [FX.php List] Switch of web host - HTML special chars
> strippedfrom FX output (FMU6)
>
> Can you provide the old and new phpinfo() again please, they seem to
> be the same URL.
>
> 1 jun 2009 kl. 13.42 skrev Ben Bradley:
>
>> Hi everyone
>>
>> Right I've now done some further tests on the new and old providers
>> and there is something different about the outputs from FX.php
>>
>> On the new provider the HTML special chars are removed from all
>> fields. Completely removed, not replaced with anything.
>>
>> On the old provider the HTML special chars are returned correctly.
>> Not converted to entities but returned in their raw format suitable
>> for rendering as HTML tags without any further processing.
>>
>>
>> I've found there are some differences in various libraries between
>> the new/old providers. cURL and various XML libraries appear to be
>> slightly different
>>
>> NEW: http://dealer-world.net/phpinfo.php
>> OLD: http://dealer-world.net/phpinfo.php
>>
>> I had a look through the cURL changelog
> http://curl.haxx.se/changes.html
>> and couldn't see anything that would cause any difference in
>> operation.
>>
>> What (if any) XML libraries does FX.php use?
>> I will have a dig through those changelogs
>>
>>
>> On the new provider, when I make a manual PHP cURL call to a test
>> page the HTML gets returned correctly as expected.
>>
>> Anyone else got any ideas as to why this is happening?
>> It's driving me a bit crazy!
>>
>> Thanks, Ben
>>
>> -----Original Message-----
>> From: Ben Bradley
>> Sent: 31 May 2009 13:24
>> To: 'FX.php Discussion List'
>> Subject: RE: [FX.php List] Switch of web host - HTML special chars
>> stripped from FX output (FMU6)
>>
>> Correction:
>> I think I was uploading to an incorrect address.
>>
>> When I run a curl call on the FMP XML data URL on the new
>> provider... the XML gets returned with all special chars in the
>> fields replaced with their HTML entities... > < " etc
>>
>> When I run the exact same CURL call on the old provider, exactly the
>> same output.
>> I assume the > < is what FMU6 returns and not some processing
>> by FX.php
>>
>> When I run a CURL call on the new provider to a regular HTML page,
>> the HTML gets returned as expected... With no special chars removed.
>>
>> So it seems CURL might not be the culprit after all.
>> Or at least the default CURL options in my custom get_webpage()
>> function
>>
>>
>>
>> -----Original Message-----
>> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org
>> ] On Behalf Of Gjermund Gusland Thorsen
>> Sent: 31 May 2009 12:35
>> To: FX.php Discussion List
>> Subject: Re: [FX.php List] Switch of web host - HTML special chars
>> stripped from FX output (FMU6)
>>
>> Are you running Mac workstation?
>>
>> I would do a print_r( $result ); of your problem query.
>>
>> and copy the URL part of the array
>>
>> and open terminal, type the following
>>
>> curl <<pasteTheUrl>>
>>
>> ggt
>>
>> 2009/5/31 Gjermund Gusland Thorsen <ggt667 at gmail.com>:
>>> So there is a different FMU6 in this case?
>>>
>>> ggt
>>>
>>> 2009/5/31 Ben Bradley <ben.bradley at dealer-world.com>:
>>>> Hi
>>>> I'm using the same version of FX.php as I was on the old hosting
>>>> provider... Which was working fine.
>>>> I basically uploaded an identical copy of the site to the new
>>>> provider
>>>>
>>>> What version should I try?
>>>> At the moment I'm using 4.5.1
>>>>
>>>> Cheers, Ben
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org
>>>> ] On Behalf Of Gjermund Gusland Thorsen
>>>> Sent: 31 May 2009 01:03
>>>> To: FX.php Discussion List
>>>> Subject: Re: [FX.php List] Switch of web host - HTML special chars
>>>> stripped from FX output (FMU6)
>>>>
>>>> Ahh, FMU6
>>>>
>>>> Did you try an old version of FX.php? One that corresponds to
>>>> FMU6, i e
>>>>
>>>> ggt
>>>>
>>>> 2009/5/30 Ben Bradley <ben.bradley at dealer-world.com>:
>>>>> PHP headers and meta charset are both UTF-8
>>>>> It appears special chars are just completely removed. The rest of
>>>>> the content is fine!
>>>>>
>>>>> If I try and get any records from the CMS database using a
>>>>> completely plain test script, then the same thing happens.
>>>>>
>>>>> It's not just this field either, if I put special chars (< > or
>>>>> ") in any other field, they also get removed
>>>>> So the tag name, contents, attributes and values etc are all
>>>>> preserved, just without the <>" in there!
>>>>>
>>>>> Strangeness!
>>>>>
>>>>> Cheers, B
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org
>>>>> ] On Behalf Of Gjermund Gusland Thorsen
>>>>> Sent: 30 May 2009 13:56
>>>>> To: FX.php Discussion List
>>>>> Subject: Re: [FX.php List] Switch of web host - HTML special
>>>>> chars stripped from FX output (FMU6)
>>>>>
>>>>> And what is your charset in the header of your documents?
>>>>>
>>>>> Are the characters just removed? or replaced with some other  
>>>>> chars?
>>>>>
>>>>> ggt
>>>>>
>>>>> 2009/5/29 Ben Bradley <ben.bradley at dealer-world.com>:
>>>>>> Hi everyone
>>>>>> I've just switched hosting provider and there appears to be a
>>>>>> difference in
>>>>>> their PHP configurations.
>>>>>>
>>>>>> With the new provider any HTML special chars are getting
>>>>>> automatically
>>>>>> removed from my FX.php output... causing HTML tags in my
>>>>>> FileMaker website
>>>>>> content management system to get printed out as text.
>>>>>> Less than, greater than and quote marks are just removed; not
>>>>>> replaced with
>>>>>> anything else.
>>>>>>
>>>>>> I have basically copied the entire site over to the new provider
>>>>>> and I've
>>>>>> never seen this problem before.
>>>>>>
>>>>>> The old provider was running PHP 5.2.6
>>>>>> The new provider is running PHP 5.2.5
>>>>>>
>>>>>> One thing I did notice is the new provider has magic_quotes_gpc
>>>>>> set to On in
>>>>>> the phpinfo()
>>>>>> It was Off on the old provider.
>>>>>> But that shouldn't make any difference to the output of FX,
>>>>>> should it?
>>>>>> magic_quotes_runtime and magic_quotes_sybase are set to Off on
>>>>>> the old and
>>>>>> new providers.
>>>>>>
>>>>>> I'm running FileMaker Unlimited 6 with custom web publishing.
>>>>>> There's
>>>>>> nothing that's changed on the CDML format files.
>>>>>> When I call up the site in the old host, everything is still  
>>>>>> fine!
>>>>>>
>>>>>> Anyone experience this error before or can think of any config
>>>>>> things to
>>>>>> try?
>>>>>>
>>>>>>
>>>>>> I've done a few tests... CURL calls are fine... no HTML special
>>>>>> chars
>>>>>> removed there!
>>>>>> Also if I set a bunch of HTML code into a variable, and echo
>>>>>> that variable
>>>>>> out again the HTML special chars are preserved so the tags get
>>>>>> rendered.
>>>>>>
>>>>>> Any ideas / suggestions?
>>>>>> This has been driving me nuts this afternoon!
>>>>>>
>>>>>> Cheers, B
>>>>>> _______________________________________________
>>>>>> FX.php_List mailing list
>>>>>> FX.php_List at mail.iviking.org
>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> FX.php_List mailing list
>>>>> FX.php_List at mail.iviking.org
>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>>> _______________________________________________
>>>>> FX.php_List mailing list
>>>>> FX.php_List at mail.iviking.org
>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>>>
>>>> _______________________________________________
>>>> FX.php_List mailing list
>>>> FX.php_List at mail.iviking.org
>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>> _______________________________________________
>>>> FX.php_List mailing list
>>>> FX.php_List at mail.iviking.org
>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>>
>>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> -|
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list


-|



More information about the FX.php_List mailing list