Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 1st October 2013, 11:23
LinuxAdminWannaBe LinuxAdminWannaBe is offline
Junior Member
Join Date: Oct 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy PHP script to omit root owned files

Hi guys,

I have created a PHP script for listing files and redirect it on a txtfile. This is only successful if i search a location which is non root. How could i update it to omit those root owned files.

Appreciate your help.

PHP Code:


function ob_file_callback($buffer)

$ob_file fopen('tarfile.txt','w');


$Find="find $Path -path '*.tar'";

$result Find($Loc);
foreach($result as $single
printf("%s \n",$single);


Reply With Quote
Sponsored Links



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
automatic webmail link admins Installation/Configuration 16 22nd June 2009 17:42
Missing Email dayjahone General 7 30th June 2008 16:29
Wrong steps by upgrading ISPC Berry Installation/Configuration 14 14th November 2007 17:27
Apache - Virtual hosts - ISPConfig Hans Server Operation 8 23rd April 2006 17:29
cannot connect to ispconfig guidovanh Installation/Configuration 22 3rd March 2006 20:52

All times are GMT +2. The time now is 01:44.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.