Jump to content

PHP file Editing Program


Loki

Recommended Posts

I do not know if one exists but does anyone know a program that can edit multiple php files at once to add copyright info to the top of each file without having to go through thousands of files to add it manually?  This would make my life so much easier.  :'(

 

Would be so nice to just drop a folder with all the files in it and paste the copyright code in a box below that was needed to be added and it automatically adds it to the top of each file in the folder.

 

If such a program exists please post the name of it.

 

Thanks

 

 

Link to comment
Share on other sites

Pretty much any decent code editor should be able to do a multi-file find and replace.

I use Crimson Editor, it can do it accross all open files. Maybe a different editor can do it without opening the file first in the GUI?

But, you want to add text, not replace text...

If your files are consistent, you may be able to try something like find "<?php" replace with "<?php\n/* copyright info blah blah */\n"

 

At least thats my second thought, the first was just write a little script to do it.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.