You can ask your hosting provider if they provide a way, but it can't be done from the php code directly. Sometimes they provide a way to update it from the .htaccess file or have a place in your hosting admin where it can be changed, but it may not be possible on shared hosting environments.