sl0thy Posted March 10, 2005 Share Posted March 10, 2005 hi i would like to use this contrib (http://www.oscommerce.com/community/contributions,2203/category,all/search,referral) and for altered files it says to use referral-1.1.patch. Do i just put this file and run it from a browser to have it update my file? Fiqured id ask before i blew anything up. Thanks Brian Link to comment Share on other sites More sharing options...
KennethS Posted March 10, 2005 Share Posted March 10, 2005 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 More sharing options...
KennethS Posted March 10, 2005 Share Posted March 10, 2005 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.