Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8883261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:46:19+00:00 2026-06-14T20:46:19+00:00

Directive ‘magic_quotes_gpc’ is deprecated in PHP 5.3 and greater in laravel I don’t have

  • 0

Directive ‘magic_quotes_gpc’ is deprecated in PHP 5.3 and greater
in laravel

I don’t have access to php.ini file at the server so i can’t turn magic_quotes off, i have already tried .htaccess method it didn’t work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:46:20+00:00Added an answer on June 14, 2026 at 8:46 pm

    You should ask your hosting provider to turn off magic quotes.

    If you can’t do that, you can use this code to remove magic quotes your self:

    // Remove Magic Quotes
    
    if (get_magic_quotes_gpc()) {
        $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
        while (list($key, $val) = each($process)) {
            foreach ($val as $k => $v) {
                unset($process[$key][$k]);
                if (is_array($v)) {
                    $process[$key][stripslashes($k)] = $v;
                    $process[] = &$process[$key][stripslashes($k)];
                } else {
                    $process[$key][stripslashes($k)] = stripslashes($v);
                }
            }
        }
        unset($process);
    }    
    

    Just put this code somewhere at bootstrap level, or you should put this as first code in your scripts.

    I had similar situation where I had PHP 5.3 and magic quotes turned on.
    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this directive in my nginx virtual host file: try_files $uri $uri/ /profile.php?nickname=$uri&$args;
I have the following directive in my .htaccess file which works on one server,
I'd like to place a directive in my theme's functions.php file which appends a
How can i use RewriteMap directive in htaccess file? When i put it there
I have an angular directive that is a custom attribute that possibly can contain
I have a directive which loads a JSON file then uses that data to
With Apache the directive DirectoryIndex index along with DefaultType application/x-httpd-php within a particular vhost
Changing the open_basedir directive to work with subdomains works absolutely fine on my server
In the page directive of my page I have set EnableViewState=false. But I am
can cookies be blocked using a page directive instead of doing it programmatic?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.