The default PHP memory size is set to 32MB which should be sufficient for most scripts and sites. If your script requires a higher limit you can set this by adding the following line to an .htaccess file in the same directory as the script:
php_value memory_limit ?M
Replace "?" with the with the value you need to replace it with.