title: How do I upgrade PHP in Mac OS X?
body: <p>I feel this is an awfully obtuse question to ask, but strangely, this problem is poorly documented. </p>
  
  <p>I would like to upgrade PHP, but there are several problems: </p>
  
  <ul>
  <li>There is no built-in package manager. MacPorts doesn't recognize php as an installed package because it didn't install PHP itself.</li>
  <li>Running <code>locate php</code> indicates there are probably many dependencies.</li>
  <li>I don't know HOW php was installed, as it was included with the OS, so I don't know whether I should install from source or download binaries. I also don't know the proper way to uninstall the previous version without breaking dependencies.</li>
  </ul>
  
  <p>I am running on Leopard. I have a feeling Apple doesn't want you to upgrade. Would buying Snow Leopard and upgrade solve this problem (and future ones like it)?</p>