To get rid off the forward Slashes (/) included before every single (') or double quote(") in PHP hosting. Edit the php.ini file and add the following line,
magic_quotes_gpc = Off;
If your PHP code works fine on a Windows system does not guarantee that it will also work on Linux or vice-versa. There are loads of issues that may come up when deploying your PHP code on Linux environment, such as case-sensitivity issues and single quotes, double quotes, slash issues etc. These issues can be resolved using the php configuration file i.e. php.ini file.
About PHP Magic Quotes
PHP magic quotes when ON all the single quotes (') , double quotes ("), backslashes (\) and NULL characters are escaped with a backslash automatically
PHP Magic quotes directives :
magic_quotes_gpc :If ON it affects HTTP GET, POST and COOKIE Request data.
magic_quotes_runtime : Though by default its OFF but when this directive is ON, most functions that return data from an external source, including databases and text files, will have quotes escaped with a backslash. This can be set at runtime.
magic_quotes_sybase : If this directive is ON, a single-quote is escaped with a single-quote instead of a backslash.
Note: Magic Quotes have been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
- Upload Pdf file using PHP Script
- 403 forbidden error for Image
- Installing vue.js in Laravel 8
- Copy file from one directory to other in Php
- Remove URL Forward Slash Before Single or Double quotes in php.ini
- PHP Script to Upload Images to Server
- PHP Base64 encoding decoding a variable
- Upload docx file using PHP script
- Delete file using PHP code : unlink()
- PHP 301 Redirect Permanently
- PHP Fatal error : Call to a member function bind_param() on a non-object
- Call PHP function on Button click using jquery ajax
- PHP header location function not called
- Failed to load resource: net::ERR_CACHE_MISS PHP
- PHP Code for sending Emails
- How to destroy PHP session()
- PHP drag and drop file upload tutorial using dropzone.js
- PHP Warning: Cannot modify header information - headers already sent
- Notepad++ Convert text from lower to upper case - NotepadPlusPlus
- Difference between using Scanner Class and String args for user input in Java - Java
- How to Change Eclipse Default Web Browser - Eclipse
- Facebook : Warning: Request without access token missing application ID or client token - Facebook
- How to recover unsaved notepad file Windows 10 - NotepadPlusPlus
- This Toast was not created with Toast.makeText() : Android RuntimeException - Android
- Maven Unsupported major.minor version 51.0 - Java
- Toast not getting displayed Android App - Android
- How to reset eclipse layout - Android
- Upload docx file using PHP script - PHP
- Comprehensive 256 Ascii code table with Html Hex IBM Microsoft Key - Html
- reCAPTCHA Implementation Tutorial - CSS
- import servlet API to eclipse project (javax.servlet cannot be resolved error) - Java
- Android: Unknown error code during application install : - Android
- [Solved] SharePoint Search Internal server error exception - SharePoint