• 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

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

Get latest Tweets - What API

Jquery DataTables: Data not displaying in table via Ajax

Laravel views are showing from cache on one server but works fine on other server

Display Brand Name Above Product Title in Woocommerce Cart, Checkout Page, Orders and Email Notification

Add and update products to session cart in Laravel

Get data from accuweather api url

Malformed MIME header error in Symfony 5.3

Detect if PHP session exists

Laravel Passport - Not able to get token string in response?

PHP Sorting - getting 10, 11, 12 ... 1, 20, 2 rather than 1, 10, 11, 12 ... 2, 20

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

PHP - installing Xdebug on Mac with XAMPP (Unix File)

Add 2 Webcam in one page with WebcamJS

About Contact Privacy policy Terms and conditions