• 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 mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

AJAX call fails with SyntaxError: Unexpected end of JSON input

Converting alphabet letter to alphabet position in PHP [duplicate]

how to check version of codeigniter framework?

Reorder attribute dropdown terms in Woocommerce single variable products

Wordpress how to get the post thumbnail inside a figure tag

Symfony autowiring issues since docker update

PHP error: "The zip extension and unzip command are both missing, skipping."

Converting array to string and then back in PHP

How to programmatically find public properties of a class from inside one of it's methods

Creating a config file in PHP

Split a string array into pieces

How to debug in WooCommerce 3+

Laravel Livewire: jQuery not working in child component loaded via @if statement

Laravel Carbon throws error The format separator does not match

About Contact Privacy policy Terms and conditions