Hi,
the manual contains a section about the most important configuration directives and where you can set them:
memory_limit: PHP_INI_ALL
You should be able to increase the limit in the script itself.
Add e.g.
ini_set("memory_limit", 550000000);
on top of the script. But that can be dangerous because with a 500mb file PHP would use 500mb of memory. The server must have sufficient memory resources. In worst case the web server (or even the complete OS) could crash if your scripts uses too much memory.
How does the script look like ?
Thomas