• 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

PHP contact form configuration [duplicate]

PHP SoapClient: set a namespace without prefix

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

Laravel Model save() & update() Not Saving

php file upload scanning using clamav, permissions on /tmp/

OctoberCMS / Anonymous Global Scope

Eloquent insert id with sequence next value

How can I make a full text index of the column?

Sentry on Symfony: how to exclude `NotFoundHttpException`

How to get array values using foreach in laravel

Do I need to install `fxp/composer-asset-plugin` if I'm not doing front-end development

Why does array_map() with null as callback create an "array of arrays"?

Invalid value in field "itemtype" in Google Search Console

CodeIgniter 3 is generating a session file on each request, why?

Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning

About Contact Privacy policy Terms and conditions