For those who would like to use "Method A" (the register.patch file) to modify their register.php file but do not have shell access (e.g. hosting services that only provide cPanel access), you may find this "trick" useful:
1. Upload the register.patch file to your forum's root directory.
2. Create a plain text file called
runpatch.pl with the following contents:
Code:
#!/usr/bin/perl
print "content-type:text/html\n\n";
system('patch -b register.php < register.patch');
save it, and upload it to your forum's root directory.
3. Change the permissions on the runpatch.pl file that you just uploaded to 0755 so that you can execute the script.
4. In a web browser, type:
http://yourdomain/yourforum/runpatch.pl
The perl script will run, which in turn runs the patch command.
5. Delete the runpatch.pl file from your forum's root directory.
N.B.: This technique assumes that you can run perl scripts with system calls on the server where your forum resides, which is usually the case.
- Dan