increasing memory in php.ini or wp-config

Hi,

Is it better to increase the wordpress memory usage in php.ini or wp-config? Also what is the code to increase the memory limit|?