• 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

PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: no such host known

Doctrine 2 mapping referencing unique key

Lumen - Postgresql setup - Composer

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

CodeIgniter 4: Like and Dislike Functionality

Zig-zag scan an N x N array

PHP: How to quickly split a key=value file into associative array

Laravel PackageManifest.php: Undefined index: name

Sum array values of a column within each column of an array with 3 levels

How to Generate PDF invoice to XML format using mPDF

Laravel whole batch is cancelled if one Job fails

301 Redirect to remove query string on homepage only

PHP: set a (deep) array key from an array [closed]

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

Redirect to previous page with php

About Contact Privacy policy Terms and conditions