How can I change the upload_max_filesize, post_max_size and memory_limit for my scripts?

Create a php.ini file in folder where script is located and add the following lines to it:
upload_max_filesize = XM
post_max_size = XM
memory_limit = XM

Where X is the amount of memory in Megabytes.