Jump to content

nelliza111

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

nelliza111's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I put up php_info page - maybe someone could see something special there http://maidan.org.ua/test.php
  2. Could it be something in php.ini that prevents the quote from being converted?
  3. Tried all functions I can think of, including preg_replace, ereg_replace - no way.
  4. Tried. Single quote is not converted anyway.
  5. Of course I did look at source. Also searched the web, read FAQ and manuals at php.net before posting. it is not something obvious.
  6. I need the browser-interpreted code exactly - to replace single quote in html code output. It does not matter how it works from command line. And yes, all browsers show the same - not replaced single quote.
  7. The line of code is in function that works perfectly except for single quote line function convert_quotes ($text) { $text = ereg_replace ('"', """, $text); $text = str_replace ("'", "´", $text); $text = ereg_replace ('“', "“", $text); $text = ereg_replace ('”', "”", $text); $text = ereg_replace ('‘', "‘", $text); $text = ereg_replace ('’', "’", $text); $text = ereg_replace ('«', "«", $text); $text = ereg_replace ('»', "»", $text); return $text; } I have standard CentOS built, did not edit php.ini. I have not the slightest clue what could be wrong here.
  8. I am trying to do the seemingly simple thing - replace all single quotes in text str_replace ("'", "´", $text); It does not replace anything. I trying escaping single quote, using other similar functions - nope. Also tried to google What I an doing wrong? Any help would ne much appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.