![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2005
Location: Kent, UK
Posts: 2
Rep Power: 0
![]() |
Patching
On my website I am using Mambo 4.5.2. I have modified the core PHP files to customise my Mambo. Mambo have now released a patch from 4.5.2 to 4.5.2.3 and installation is a simple procedure which requires the files included within the patch to be copied to the respective directories of the root of my installation thereby overwriting the original files [with my modifications].
Fortunately I maintained a good record of the modifications I made to the original files. I understand by using common *nix application such as diff and patch I could apply the modifications automatically however I doubt this would be necessary as I could implement the modifications I made originally into the new release files manually. What I would like to know is the best way to handle this in the future as it may not be possible to incorporate existing modifications to new releases manually due to the number of modifications made. Rem
__________________
A nerd is very similar to a geek, but with more RAM and a faster modem. http://oldskool.shacknet.nu |
|
|
|
|
|
#2 |
|
Professional Programmer
|
Mambo? Don't you mean JOOOOOMLAAAAAAAA??
Sorry I have nothing to contribute ![]()
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() |
this is more of a shell scripting problem rather than php, moved to the right forum.
What i would do is create a bash/perl/python/whatever script that uses the comm command under linux, then takes the output and puts the unique lines from file1, and file2 into a new php file along with all the common lines. i have no experience with the comm command, but i am sure if you know how to use your choosen scripting language, and read the man file for comm you'll be able to figure something out. see http://www.linuxcommand.org/man_pages/comm1.html for more info on the comm command.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#4 | ||
|
Newbie
Join Date: Sep 2005
Location: Kent, UK
Posts: 2
Rep Power: 0
![]() |
Quote:
Quote:
Rem
__________________
A nerd is very similar to a geek, but with more RAM and a faster modem. http://oldskool.shacknet.nu |
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|