Problems with JSON and PHP
freebsd at boosten.org
freebsd at boosten.org
Fri Feb 1 15:40:37 UTC 2019
>>> There you go, injecting logic. The only other thing I can think of is
>>> check the FPM php.ini file. What happens if you try a simple json_encode
>>> of a string? Try the simplest call first, then go on from there.
>>> _______________________________________________
>>
>> The only thing I can think of is that his web server uses a different
>> php.ini then the command line.
>> The web server cannot find the json module.
>>
>> Peter
>>
>>
> Sorry, should have been more clear. Yes, the command line and web server
> uses different php.ini files. usually, the command line file is in a
> folder marked cli and the web server file is in one marked fpm
>
My mistake, didn’t read that good, apologies.
Digging through the php man page I found that the cli actually looks for a php-cli.ini, if found it ignores the php.ini.
OP could easily check this with ‘php —ini’ on the cmd line.
Peter
More information about the freebsd-questions
mailing list