How can the file upload size allowed by php settings be determined withing a php script?
Use ini_get to get the current configuration value:
ini_get('upload_max_filesize')