Results 1 to 2 of 2

Thread: xml scripting

  1. #1
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default xml scripting

    i am installing vbulliten on my server. But There a 3 files(xml) files that are too big.(they exceed the upload file size limit) so is it possible to cut out half of the code in the xml file paste it in a second file. Then in the 1st file at the end at code saying to get the contents of the second file. Work that work how?

  2. #2
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    For my method you need .htaccess. Put this in a .htaccess file.
    Code:
    <Files *.xml>
    ForceType application/x-httpd-php
    </Files>
    Then in your XML files
    PHP Code:
    <?php
    header
    ('Content-Type: text/xml');
    include(
    'chunk.xml');
    include(
    'chunk2.xml');
    ?>
    This should work. However it WILL NOT work if vBulletin tries to write to the xml/php file.

Bookmarks

Posting Permissions

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