MESTO is a project about geolocalization of sites and the equipment related. Designed to help IT organisations to keep track of their equipment and clients in a specific area.
1
stars
1
forks
source link
In PHP script, modularized the JSON validation error process #20
PHP have to make a JSON message to communicate back to Javascript. There is a big switch case repeated in every script.
That should be a function include for stopping the repetition.
During this time, be sure that after every json_encode function the validation is done before sending back possible encoding error.
At this point, some json_encode or echo, are not validate for JSON encoding error.
PHP have to make a JSON message to communicate back to Javascript. There is a big switch case repeated in every script.
That should be a function include for stopping the repetition.
During this time, be sure that after every json_encode function the validation is done before sending back possible encoding error. At this point, some json_encode or echo, are not validate for JSON encoding error.