{"id":4605,"date":"2016-08-19T06:44:38","date_gmt":"2016-08-19T03:44:38","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=4605"},"modified":"2023-01-19T13:59:27","modified_gmt":"2023-01-19T10:59:27","slug":"magic_quotes-turning-off","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/","title":{"rendered":"Magic_quotes turning off"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu,sans-serif;\"><strong>Question:<\/strong> How to switch the magic_quotes off?<\/span><!--more--><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><strong>Answer:<\/strong> To switch the magic_quotes function off you should make changes in the file php.ini on your hosting account.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">File php.ini might be found in ISPmanager control board &#8211; Tools &#8211; File manager &#8211; php-bin<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">Write the following string in the file to switch magic_quotes for incoming data GET\/POST\/Cookie off:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu,sans-serif;\"><em>magic_quotes_gpc = Off<\/em><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">Magic quotes for data that is incoming at the time of executing (for example, data from SQL, exec() etc.):<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu,sans-serif;\"><em>magic_quotes_runtime = Off<\/em><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">Using magic quotes in Sybase style (screening &#8216; by using &#8221; instead of \\&#8217;):<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu,sans-serif;\">magic_quotes_sybase = Off<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">If you have no possibility to make changes in server configuration you should use the file .htaccess as alternative. It is in the directory www\/domain_name.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">You should add the following string to the file:<\/span><\/p>\n<pre><em><span style=\"font-family: Ubuntu,sans-serif;\">php_flag magic_quotes_gpc Off<\/span> <\/em><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Question: How to switch the magic_quotes off?<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[11],"class_list":["post-4605","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","tag-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magic_quotes turning off - Unihost.FAQ<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magic_quotes turning off - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"Question: How to switch the magic_quotes off?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-19T03:44:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-19T10:59:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png\" \/>\n\t<meta property=\"og:image:width\" content=\"250\" \/>\n\t<meta property=\"og:image:height\" content=\"141\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"Magic_quotes turning off\",\"datePublished\":\"2016-08-19T03:44:38+00:00\",\"dateModified\":\"2023-01-19T10:59:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/\"},\"wordCount\":134,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"keywords\":[\"Hosting\"],\"articleSection\":[\"02. Dedicated servers\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/\",\"url\":\"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/\",\"name\":\"Magic_quotes turning off - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"datePublished\":\"2016-08-19T03:44:38+00:00\",\"dateModified\":\"2023-01-19T10:59:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Magic_quotes turning off\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magic_quotes turning off - Unihost.FAQ","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/","og_locale":"en_US","og_type":"article","og_title":"Magic_quotes turning off - Unihost.FAQ","og_description":"Question: How to switch the magic_quotes off?","og_url":"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2016-08-19T03:44:38+00:00","article_modified_time":"2023-01-19T10:59:27+00:00","og_image":[{"width":250,"height":141,"url":"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png","type":"image\/png"}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"Magic_quotes turning off","datePublished":"2016-08-19T03:44:38+00:00","dateModified":"2023-01-19T10:59:27+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/"},"wordCount":134,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"keywords":["Hosting"],"articleSection":["02. Dedicated servers"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/","url":"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/","name":"Magic_quotes turning off - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"datePublished":"2016-08-19T03:44:38+00:00","dateModified":"2023-01-19T10:59:27+00:00","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/magic_quotes-turning-off\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/magic_quotes-turning-off\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"Magic_quotes turning off"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/4605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=4605"}],"version-history":[{"count":1,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/4605\/revisions"}],"predecessor-version":[{"id":4606,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/4605\/revisions\/4606"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=4605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=4605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=4605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}