Home >Backend Development >PHP Tutorial >Questions about php.ini
My local php code can run normally, but when it is sent to the server, an error will be reported. After inspection, it is found that it is caused by the writing method empty( intval( $var ) )
.
But what confuses me is that I can run it locally, and an error will be reported when I don't execute this part of the code.
So I want to ask if this is because of different php.ini configuration?
My local php code can run normally, but when it is sent to the server, an error will be reported. After inspection, I found that it is caused by the writing method empty( intval( $var ) )
.
But what confuses me is that I can run it locally, and an error will be reported when I don't execute this part of the code.
So I want to ask if this is because of different php.ini configuration?
This way of writing reports an error! What error is reported? Post it and take a look! Is your local php
version the same as the php
version on the server?
I just encountered this problem two days ago