• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

php echo xml documents with header

phpxml


PHP Snippet 1:

<?php header("Content-type: text/xml"); ?>
<?php
    $xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

PHP Snippet 2:

<?php 
    header("Content-type: text/xml"); 
    $xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

PHP Snippet 3:

echo '';print_r($output);echo '';die;

Related Snippets

Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::fetch_assoc() [duplicate]

How to add class name to an existing tag in php

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

Why does using salted hash on python and php give me different results?

browsersync doesn't work with XAMPP

Autoloading classes in PHPUnit using Composer and autoload.php

Call to a member function fetch_field() on a non-object MySQLiDB

Xdebug 3 not showing in phpinfo on m1 Monterey

Sum array values

How to Generate PDF invoice to XML format using mPDF

Split array into 4-element chunks then implode into strings

Xdebug in Laravel is not working with VSCode

WordPress - Dynamically add user ID to the end of a URL

PHP Warning: Module already loaded in Unknown on line 0

Having trouble with PDO queries (Notice: Undefined index)

About Contact Privacy policy Terms and conditions