<?php
// List of PHP files to update
$files = [
    'index.php',
    'about.php',
    'services.php',
    'portfolio.php',
    'testimonials.php',
    'contact.php'
];

foreach ($files as $file) {
    if (file_exists($file)) {
        $content = file_get_contents($file);
        $updated = str_replace(
            "<?php include 'includes/header.html'; ?>", 
            "<?php include 'includes/header.php'; ?>", 
            $content
        );
        
        if ($content !== $updated) {
            file_put_contents($file, $updated);
            echo "Updated: $file\n";
        } else {
            echo "No changes needed for: $file\n";
        }
    } else {
        echo "File not found: $file\n";
    }
}

echo "\nInclude paths updated successfully.\n";
?>
