SFTP File Upload with PHP

Quick PHP code snippet to upload a file to a remote server using SFTP. This code will connect and upload a file to the server. It does not have proper error handling and there are more than likely more efficient ways to load the file, especially large files. 1 2 3 4 5 6 7…

Upgrading PHP on RHEL 4.6

I currently have a RHEL4.6 server that is hosting a MediaWIki v1.6.12 sire. The reason I stayed with that version for so long is that the default LAMP stack could properly run it without updating. But my users have requested a more current version be install so now it is time to upgrade it.