php - str_replace('\"','',$str) not working on server why? -


i using

str_replace('\"','',$str);  

to replace '\"' php script. correctly working on localhost.

when uploading not working on server. why ?

the script like, $str=http://www.keralatourism.org/beta-images/newsletter.jpg\""> remove \" using echo str_replace('\"','',$str);

its working on local host not in live server

i not clear if want remove backslashes user stripslashes

 $str= 'http://www.keralatourism.org/beta-images/newsletter.jpg\""';  echo stripslashes($str); 

if trying remove double quotes:

$str= 'http://www.keralatourism.org/beta-images/newsletter.jpg\""'; echo str_replace ('"', '', $str); 

wrap double quotes inside single quotes.

hope helps :)


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

php - HTTP_REFERER woes: How can I allow access to a specific page, only when a visitor has visited another specific page beforehand? -

java Extracting Zip file -