Jump to content

Search the Community

Showing results for tags 'create xml'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi Freaks I created a Joomla 1.5 install.xml using scandir. For easier orientation, folders are capitalized and blue ASSETS - index.html - CSS - - index.html - - popup.css - - default.css - JS - - index.html - - form.js CONTROLLERS MODELS TABLES VIEWS controller.php index.php reporter.php output of the first 14 lines: <filename>ASSETS</filename> <filename>ASSETS/CSS</filename> <filename>ASSETS/CSS/default.css</filename> <filename>ASSETS/CSS/incident_reporter_form.css</filename> <filename>ASSETS/CSS/index.html</filename> <filename>ASSETS/CSS/popup.css</filename> </filename> <filename>ASSETS/index.html</filename> <filename>ASSETS/JS</filename> <filename>ASSETS/JS/incident_reporter_form.js</filename> <filename>ASSETS/JS/index.html</filename> </filename> </filename> <filename>controller.php</filename> <filename>CONTROLLERS</filename> My script $allfiles = ''; function readFolders($dir ) { global $allfiles; $files = scandir($dir); foreach($files as $f) { if($f != '.' && $f != '..') { $allfiles .= '<filename>'.$dir.'/'.$f; if(is_dir($dir.'/'.$f)) { $allfiles .= "</filename>\n"; readFolders($dir.'/'.$f); } $allfiles .= "</filename>\n"; } } $fp = fopen('xml_scandir.txt', 'w') or die('cannot open file'); fwrite($fp, $allfiles); fclose($fp); } readFolders('com_reporter'); Question: Why do I have those extra closing tags </filename> that attach outside if(is_dir) ? I would understand if the output came with empty tags, eg <filename></filename> Thank you Fero
×
×
  • 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.