Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Config quotes on vars PHP

$
0
0

I'm new on the site (hi!) and I had a problem that I can't resolve yet. I look for it but no results.. I think it's a stupid thing, but I can't find the solution.

I'm migrating a system (php) to other server (both are CentOS) and I have a problem with the quotes in php vars

    example:    --------    $_GET[var]    $db_reg[assoc]    $array[value]    define(NAME,'value')    etc..

All cases can fix adding quotes to indexes, but the thing is that I have thousand of php files, with millions of lines each one, and I can't checking one by one.. it will take around two lives and a half.

In the old server, it works normally, but in the new, the vars are not recognized, shows a PHP Notice:

"Notice: Use of undefined constant XXXX - assumed 'XXXX in..."(ej: $_POST[XXXX])

Is any configuration on Apache or PHP for recognize or not (indistinct) quotes on vars?

The php version on both servers are the same, and I had checked the php.ini and are similar.

Appreciate your help, thank in advance.

Daniel


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>