Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do i install a .patch file


sl0thy

Recommended Posts

Patches are run using the patch < filename.patch command in a shell account (telnet or SSH) on your server while it is probably in your catalog directory. You may want to read the exact command it is wanting you to execute from the help file.

 

Also the patch file can be inserted by hand by reading the file, doing the + = add, - = remove, and the other means change I believe.

 

If using the patch command and if any automatic inserts of code fail it will leave a 3 files per Failure (filename.php, filename.php.orig, and filename.rej). The .Rej file contains the problem code it couldnt fit in, the .Orig file contains the unodified file, and the normal PHP file contain the original and the modified code it could insert properly. You will have to get the code from Rej into PHP Successfully by hand using the method suggest before.

 

Dig in, it's pretty self explanatory. BACKUP FIRST!

Kenneth S

--------------

Customer "Are you a real programmer?"

Me "No, but I did stay at a Holiday Inn Express last night"

Link to comment
Share on other sites

On a side note, always look at code before executing or installing it just the same as you would virus check email attachments before opening them.

Kenneth S

--------------

Customer "Are you a real programmer?"

Me "No, but I did stay at a Holiday Inn Express last night"

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...