Results 1 to 1 of 1

Thread: Web server - removing orphan files

  1. #1
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts

    Web server - removing orphan files

    I've 'inherited' some php code. Some really, really shoddy code. Not trusting its security I plan to go through each file and make sure it's ok. However to hopefully make this easier, I would like to remove all (well as many as possible) unnecessary files from the server.

    I know this won't be completely possible, but I would like to scan through folders like 'include' and 'inc' and see if no files in the whole webtree make reference to it, if this the case, I know its safe to remove the file. I figure this is a case of getting all include() and require(_once) references made by every file in the directory and then comparing it to the list of files in the inc/include directories.

    Anyone done something similar before?

    Also, what alternatives to include(_once) and require(_once) are there?

    Ta!
    Last edited by Raz316; 13-02-2009 at 10:41 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Business Server - Data Backup Methods
    By cptwhite_uk in forum Networking and Broadband
    Replies: 12
    Last Post: 27-02-2008, 12:25 AM
  2. Microsoft's Windows Home Server corrupts files
    By HEXUS in forum HEXUS News
    Replies: 6
    Last Post: 04-01-2008, 02:07 PM
  3. Help connecting to a remote MySQL server...
    By chicken in forum Software
    Replies: 10
    Last Post: 27-11-2007, 11:52 AM
  4. My own web server
    By r1zeek in forum Software
    Replies: 4
    Last Post: 12-07-2004, 07:23 PM
  5. Web Server issue...?
    By joshwa in forum Software
    Replies: 13
    Last Post: 29-11-2003, 12:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •