• 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

WHERE IN array binding in DB::raw laravel 5.4

display WooCommerce “Add to cart” button with short-code [add_to_cart ] dynamically

Manage independently the decimal number of the price of each product [duplicate]

zsh: command not found: php

HTML + PHP + PHPMAILER

merge all files in directory to one text file

HTML and PHP in one file

Laravel after login Two factor not working

Sentry on Symfony: how to exclude `NotFoundHttpException`

How do I Post to .txt document before form submits

PHP - CURL using HTTPS [closed]

WordPress Security Standards want me to escape my html, but how to do it correctly?

CodeIgniter extend CI_URI undefined method

How to KeyBy where multiple items have the same key

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

About Contact Privacy policy Terms and conditions