| 
	
 | 
 Posted by Allen on 06/14/48 11:39 
On Wed, 08 Feb 2006 06:10:53 -0500, <pihkal23> wrote: 
 
> [snip] the apostrophe has a backslash before it. We have run into other   
> issues with the use of various punctuation marks in the text fields of   
> the back end of the site and have always been told by the developers   
> that it is a fault of PHP and is common with PHP text fields. 
 
It is common for fledgling would-be php developers to struggle with   
escaped quotes/apostrophes in their output -- this is a problem of   
incompetence with php, not an incompetence -of- php ;) 
 
> [snip] I am growing increasingly suspicious of the level of competence   
> of the developers and feel that they are making excuses for their   
> inability. Can anyone tell me, from what  I've said here, whether my   
> suspicions are justified or is it the case that PHP is limited in these   
> areas? 
 
Again, php isn't limited in these areas.  There's an option in php.ini,   
magic_quotes_gpc, that automatically escapes things when enabled and can   
be a bit confusing if you don't know it's happening -- but this can be   
turned off if you have access to php.ini or worked around if you're a   
developer without access to php.ini.  Tell them to run a google search for   
magic_quotes_gpc and a search of php.net for 'stripslashes'. 
 
You're justified in questioning their competence -- they sound pretty lost   
to me.  They're either making up excuses for their inability or they're   
foolish enough people to use a scripting language they believe is   
incapable of outputting clean text -- either way, it says little for them   
by way of competence ;) 
 
Allen 
 
--  
http://ReReplace.com 
A Web based regular expressions powered find/replace utility
 
  
Navigation:
[Reply to this message] 
 |