Thanks
Steve
#!/usr/bin/php <? $strtoreplace="require \"http://www.domain.com/"; $replacewithstring="require \"/home/domain/www/";
replacestring();
function replacestring(){ GLOBAL $strtoreplace,$replacewithstring; $FILES=array(`ls -1 */*|grep .php`); foreach($FILES as $value){ if($value){ echo "file $value\n"; $handle=fopen($value,'a'); } } } ?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php